]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Also handle __STDC_WANT_IEC_60559_BFP_EXT__ in <tgmath.h>.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 3 Aug 2016 22:56:54 +0000 (22:56 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 3 Aug 2016 22:56:54 +0000 (22:56 +0000)
My __STDC_WANT_IEC_60559_BFP_EXT__ patch omitted to update the
conditions on the nextup and nextdown type-generic macros in
<tgmath.h>.  This patch updates those conditions accordingly.  (As
glibc doesn't currently have an exp10 type-generic macro, no such
changes are needed relating to __STDC_WANT_IEC_60559_FUNCS_EXT__;
adding such a type-generic macro would be a new feature.)

Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by the patch).  Committed.

* math/tgmath.h (nextdown): Define if
[__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
(nextup): Likewise.

ChangeLog
math/tgmath.h

index ac692dc9e775e75cc1583bae6c8a90c510a5a461..0fe7eafe997efe8100d39f41be4df14c2e8e355d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
 
+       * math/tgmath.h (nextdown): Define if
+       [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
+       (nextup): Likewise.
+
        * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
        macro.
        * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
index 8916fbe39c3b1f7a118cc9e8d2f38334d50867b0..de1eb985fe795ba06a38711eeb93b6c5b2736d31 100644 (file)
    prevailing rounding mode.  */
 #define rint(Val) __TGMATH_UNARY_REAL_ONLY (Val, rint)
 
-#ifdef __USE_GNU
+#if __GLIBC_USE (IEC_60559_BFP_EXT)
 /* Return X - epsilon.  */
 # define nextdown(Val) __TGMATH_UNARY_REAL_ONLY (Val, nextdown)
 /* Return X + epsilon.  */