This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Also handle __STDC_WANT_IEC_60559_BFP_EXT__ in <tgmath.h> [committed]
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Wed, 3 Aug 2016 22:57:38 +0000
- Subject: Also handle __STDC_WANT_IEC_60559_BFP_EXT__ in <tgmath.h> [committed]
- Authentication-results: sourceware.org; auth=none
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.
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.
diff --git a/math/tgmath.h b/math/tgmath.h
index 8916fbe..de1eb98 100644
--- a/math/tgmath.h
+++ b/math/tgmath.h
@@ -392,7 +392,7 @@
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. */
--
Joseph S. Myers
joseph@codesourcery.com