[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commits] r23736 - in /fsf/trunk/libc: ChangeLog NEWS math/libm-test.inc sysdeps/ieee754/ldbl-96/s_cbrtl.c



Author: eglibc
Date: Wed Aug 14 00:04:29 2013
New Revision: 23736

Log:
Import glibc-mainline for 2013-08-14

Modified:
    fsf/trunk/libc/ChangeLog
    fsf/trunk/libc/NEWS
    fsf/trunk/libc/math/libm-test.inc
    fsf/trunk/libc/sysdeps/ieee754/ldbl-96/s_cbrtl.c

Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Wed Aug 14 00:04:29 2013
@@ -1,3 +1,11 @@
+2013-08-13  Andreas Schwab  <schwab@xxxxxxx>
+
+	[BZ #15749]
+	* sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
+	of fabs.
+	* math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
+	LDBL_MAX_EXP >= 16384]: Add tests for it.
+
 2013-08-12  David S. Miller  <davem@xxxxxxxxxxxxx>
 
 	* version.h (RELEASE): Set to "development".

Modified: fsf/trunk/libc/NEWS
==============================================================================
--- fsf/trunk/libc/NEWS (original)
+++ fsf/trunk/libc/NEWS Wed Aug 14 00:04:29 2013
@@ -9,6 +9,7 @@
 
 * The following bugs are resolved with this release:
 
+  15749
 
 Version 2.18
 

Modified: fsf/trunk/libc/math/libm-test.inc
==============================================================================
--- fsf/trunk/libc/math/libm-test.inc (original)
+++ fsf/trunk/libc/math/libm-test.inc Wed Aug 14 00:04:29 2013
@@ -5845,6 +5845,11 @@
     TEST_f_f (cbrt, -27.0, -3.0),
     TEST_f_f (cbrt, 0.9921875L, 0.997389022060725270579075195353955217L),
     TEST_f_f (cbrt, 0.75L, 0.908560296416069829445605878163630251L),
+
+#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384
+    TEST_f_f (cbrt, 0x1p16383L, 0x1p5461L),
+    TEST_f_f (cbrt, 0x1p-16383L, 0x1p-5461L),
+#endif
   };
 
 static void

Modified: fsf/trunk/libc/sysdeps/ieee754/ldbl-96/s_cbrtl.c
==============================================================================
--- fsf/trunk/libc/sysdeps/ieee754/ldbl-96/s_cbrtl.c (original)
+++ fsf/trunk/libc/sysdeps/ieee754/ldbl-96/s_cbrtl.c Wed Aug 14 00:04:29 2013
@@ -45,7 +45,7 @@
   int xe;
 
   /* Reduce X.  XM now is an range 1.0 to 0.5.  */
-  xm = __frexpl (fabs (x), &xe);
+  xm = __frexpl (fabsl (x), &xe);
 
   /* If X is not finite or is null return it (with raising exceptions
      if necessary.

_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits