This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.14-415-g774a266


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  774a2669af652979ed965d7225502ba473b2da73 (commit)
      from  c8b3296bbeee2f482354f833f506ac91d142e147 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=774a2669af652979ed965d7225502ba473b2da73

commit 774a2669af652979ed965d7225502ba473b2da73
Author: Ulrich Drepper <drepper@gmail.com>
Date:   Sun Oct 23 13:31:01 2011 -0400

    Clean up FMA use
    
    The macro's name should reflect that subtraction is being done.  And
    use __builtin_fma, it seems to work after all.

diff --git a/sysdeps/ieee754/dbl-64/dla.h b/sysdeps/ieee754/dbl-64/dla.h
index af202ad..cb12dbc 100644
--- a/sysdeps/ieee754/dbl-64/dla.h
+++ b/sysdeps/ieee754/dbl-64/dla.h
@@ -60,9 +60,9 @@
 /* satisfies z+zz = x*y exactly. p,hx,tx,hy,ty are temporary           */
 /* storage variables of type double.                                   */
 
-#ifdef DLA_FMA
+#ifdef DLA_FMS
 # define  EMULV(x,y,z,zz,p,hx,tx,hy,ty)          \
-	   z=x*y; zz=DLA_FMA(x,y,z);
+	   z=x*y; zz=DLA_FMS(x,y,z);
 #else
 # define  EMULV(x,y,z,zz,p,hx,tx,hy,ty)          \
 	   p=CN*(x);  hx=((x)-p)+p;  tx=(x)-hx; \
@@ -76,7 +76,7 @@
 /* that satisfies z+zz = x*y exactly. p,hx,tx,hy,ty,q are temporary          */
 /* storage variables of type double.                                         */
 
-#ifdef DLA_FMA
+#ifdef DLA_FMS
 # define  MUL12(x,y,z,zz,p,hx,tx,hy,ty,q)        \
 	   EMULV(x,y,z,zz,p,hx,tx,hy,ty)
 #else
diff --git a/sysdeps/x86_64/dla.h b/sysdeps/x86_64/dla.h
index bb6c8c4..7aa06e5 100644
--- a/sysdeps/x86_64/dla.h
+++ b/sysdeps/x86_64/dla.h
@@ -1,9 +1,6 @@
-#ifdef __FMA4__
-# define DLA_FMA(x,y,z) \
-	   ({ double __zz; \
-	      asm ("vfmsubsd %3, %2, %1, %0"				      \
-		   : "=x" (__zz) : "x" (x), "xm" (y), "x" (z));		      \
-	      __zz; })
+#if defined __FMA4__ || defined __FMA__
+# define DLA_FMS(x,y,z) \
+  __builtin_fma (x, y, -z)
 #endif
 
 #include "sysdeps/ieee754/dbl-64/dla.h"

-----------------------------------------------------------------------

Summary of changes:
 sysdeps/ieee754/dbl-64/dla.h |    6 +++---
 sysdeps/x86_64/dla.h         |    9 +++------
 2 files changed, 6 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]