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-306-g4d8e1f1


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  4d8e1f11950c7ceb6b5037c66ee104d031487d72 (commit)
       via  4c1a1f71c083953f65b8f06bf7103cde549b3fb1 (commit)
      from  7a775e6b3d938586db5a66a76de9c14667151cf9 (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=4d8e1f11950c7ceb6b5037c66ee104d031487d72

commit 4d8e1f11950c7ceb6b5037c66ee104d031487d72
Merge: 4c1a1f7 7a775e6
Author: Ulrich Drepper <drepper@gmail.com>
Date:   Thu Sep 15 13:12:25 2011 -0400

    Merge branch 'master' of ssh://sourceware.org/git/glibc
    
    Conflicts:
    	ChangeLog

diff --cc ChangeLog
index 37e8782,6dd445b..fa117e9
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,8 -1,14 +1,19 @@@
 +2011-09-15  Ulrich Drepper  <drepper@gmail.com>
 +
 +	* sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
 +	for __FINITE_MATH_ONLY__ == 1.
 +
+ 2011-09-15  Andreas Schwab  <schwab@redhat.com>
+ 
+ 	* sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
+ 	__ieee754_sqrt instead of sqrt.
+ 	* sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
+ 	__ieee754_sqrtf instead of sqrtf.
+ 	* sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
+ 	__floorf instead of floorf.
+ 	* sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
+ 	__floorf, __truncf instead of floorf, truncf.
+ 
  2011-09-14  Ulrich Drepper  <drepper@gmail.com>
  
  	* sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=4c1a1f71c083953f65b8f06bf7103cde549b3fb1

commit 4c1a1f71c083953f65b8f06bf7103cde549b3fb1
Author: Ulrich Drepper <drepper@gmail.com>
Date:   Thu Sep 15 13:11:08 2011 -0400

    Add fmax and fmin inlines for x86-64

diff --git a/ChangeLog b/ChangeLog
index 57195c2..37e8782 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-15  Ulrich Drepper  <drepper@gmail.com>
+
+	* sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
+	for __FINITE_MATH_ONLY__ == 1.
+
 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
 
 	* sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
diff --git a/sysdeps/x86_64/fpu/bits/mathinline.h b/sysdeps/x86_64/fpu/bits/mathinline.h
index 9f2c4d9..b63ab12 100644
--- a/sysdeps/x86_64/fpu/bits/mathinline.h
+++ b/sysdeps/x86_64/fpu/bits/mathinline.h
@@ -64,8 +64,11 @@ __NTH (__signbitl (long double __x))
   return (__u.__i[2] & 0x8000) != 0;
 }
 
+#ifdef __USE_ISOC99
+__BEGIN_NAMESPACE_C99
+
 /* Round to nearest integer.  */
-# if __WORDSIZE == 64 || defined __SSE_MATH__
+#  if __WORDSIZE == 64 || defined __SSE_MATH__
 __MATH_INLINE long int
 __NTH (lrintf (float __x))
 {
@@ -73,8 +76,8 @@ __NTH (lrintf (float __x))
   asm ("cvtss2si %1, %0" : "=r" (__res) : "xm" (__x));
   return __res;
 }
-# endif
-# if __WORDSIZE == 64 || defined __SSE2_MATH__
+#  endif
+#  if __WORDSIZE == 64 || defined __SSE2_MATH__
 __MATH_INLINE long int
 __NTH (lrint (double __x))
 {
@@ -82,8 +85,8 @@ __NTH (lrint (double __x))
   asm ("cvtsd2si %1, %0" : "=r" (__res) : "xm" (__x));
   return __res;
 }
-# endif
-# if __WORDSIZE == 64
+#  endif
+#  if __WORDSIZE == 64
 __MATH_INLINE long long int
 __NTH (llrintf (float __x))
 {
@@ -98,6 +101,39 @@ __NTH (llrint (double __x))
   asm ("cvtsd2si %1, %0" : "=r" (__res) : "xm" (__x));
   return __res;
 }
+#  endif
+
+#  if __FINITE_MATH_ONLY__ == 1 && (__WORDSIZE == 64 || defined __SSE2_MATH__)
+/* Determine maximum of two values.  */
+__MATH_INLINE float
+__NTH (fmaxf (float __x, float __y))
+{
+  asm ("maxss %1, %0" : "+x" (__x) : "xm" (__y));
+  return __x;
+}
+__MATH_INLINE double
+__NTH (fmax (double __x, double __y))
+{
+  asm ("maxsd %1, %0" : "+x" (__x) : "xm" (__y));
+  return __x;
+}
+
+/* Determine minimum of two values.  */
+__MATH_INLINE float
+__NTH (fminf (float __x, float __y))
+{
+  asm ("minss %1, %0" : "+x" (__x) : "xm" (__y));
+  return __x;
+}
+__MATH_INLINE double
+__NTH (fmin (double __x, double __y))
+{
+  asm ("minsd %1, %0" : "+x" (__x) : "xm" (__y));
+  return __x;
+}
+#  endif
+
+__END_NAMESPACE_C99
 # endif
 
 #endif

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

Summary of changes:
 ChangeLog                            |    5 +++
 sysdeps/x86_64/fpu/bits/mathinline.h |   46 ++++++++++++++++++++++++++++++---
 2 files changed, 46 insertions(+), 5 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]