aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-12-01 01:01:36 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-12-01 01:01:36 +0000
commit60f435bb0c097ead2d4609aa7e45a203eb24e43c (patch)
tree57707e61b9a43a675aada5dc4802ed11edd1ecbb /ChangeLog
parent9627da32ec76600244e7723e99b9d4e27691f1ff (diff)
downloadglibc-60f435bb0c097ead2d4609aa7e45a203eb24e43c.zip
glibc-60f435bb0c097ead2d4609aa7e45a203eb24e43c.tar.gz
glibc-60f435bb0c097ead2d4609aa7e45a203eb24e43c.tar.bz2
Use hex float constants in sysdeps/ieee754/dbl-64/e_sqrt.c.
Various sysdeps/ieee754/dbl-64 functions use double constants defined using a union between a double and two ints, with separate big-endian and little-endian definitions of the constants. With modern C, this is unnecessary complication; hex float constants (or __builtin_inf etc.) suffice to specify the exact value desired, and so can avoid separate versions for each endianness. Having this complication also complicates cleanups such as removing slow paths from these library functions, as they need to make sure to remove both copies of variables that are no longer used after such a cleanup (and in at least one case, proper removal of a slow path will also involve removing slow-path-only values from the middle of an array - an array with both big-endian and little-endian copies - and adjusting other references to that array). So it makes sense to clean up the code to define these constants using hex floats and so eliminate the endianness conditional. This patch does so in the case of sqrt, where the two constants are such that it makes sense just to put them directly in the code using them and eliminate the names for them altogether. Tested for arm (the code generated for sqrt does change, though not in any significant way). * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h. (__ieee754_sqrt): Use hex float constants instead of tm256.x and t512.x. * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 038181c..5a44a8a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-12-01 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
+ (__ieee754_sqrt): Use hex float constants instead of tm256.x and
+ t512.x.
+ * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
+
2015-11-30 Amit Pawar <amit.pawar@amd.com>
[BZ #19214]