]> sourceware.org Git - glibc.git/commitdiff
Fix float128_private.h redefinition of SET_RESTORE_ROUNDL.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jun 2017 22:57:28 +0000 (22:57 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 22 Jun 2017 22:57:28 +0000 (22:57 +0000)
As with other long double identifiers, float128_private.h has a
redefinition of SET_RESTORE_ROUNDL.  However, that redefinition is
broken, since this is a macro with one argument being defined to take
no arguments.  This patch fixes the redefinition.  (x86_64 needs the
redefinition because SET_RESTORE_ROUNDL only changes the x87 rounding
mode, whereas _Float128 arithmetic uses the SSE rounding mode instead
on x86_64.)

Tested for x86_64 (in conjunction with float128 patches).

* sysdeps/ieee754/float128/float128_private.h
[SET_RESTORE_ROUNDF128] (SET_RESTORE_ROUNDL): Take an argument and
pass it to SET_RESTORE_ROUNDF128.

ChangeLog
sysdeps/ieee754/float128/float128_private.h

index d1de2109fd30f45b0994b6433991f0b10049cb22..80b147918331b5286f5af293bffb7343d67e52d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2017-06-22  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/ieee754/float128/float128_private.h
+       [SET_RESTORE_ROUNDF128] (SET_RESTORE_ROUNDL): Take an argument and
+       pass it to SET_RESTORE_ROUNDF128.
+
        * sysdeps/ieee754/float128/float128_private.h: Include
        <ieee754.h>.
 
index c8b153d0c1a60ddcf7d57cd3aaa687a1fda5b675..5e6ed780855ebfa0a35493eb84c5f18aa26403a0 100644 (file)
@@ -51,7 +51,7 @@
 
 #ifdef SET_RESTORE_ROUNDF128
 # undef SET_RESTORE_ROUNDL
-# define SET_RESTORE_ROUNDL() SET_RESTORE_ROUNDF128()
+# define SET_RESTORE_ROUNDL(RM) SET_RESTORE_ROUNDF128 (RM)
 #endif
 
 
This page took 0.142867 seconds and 5 git commands to generate.