Skip to content

Commit 79850e1

Browse files
committed
Do not define tgmath.h fmaxmag, fminmag macros for C2X (bug 28397)
C2X does not include fmaxmag and fminmag. When I updated feature test macro handling accordingly (commit 858045a, "Update floating-point feature test macro handling for C2X", included in 2.34), I missed updating tgmath.h so it doesn't define the corresponding type-generic macros unless __STDC_WANT_IEC_60559_BFP_EXT__ is defined; I've now reported this as bug 28397. Adjust the conditionals in tgmath.h accordingly. Tested for x86_64.
1 parent 90f0ac1 commit 79850e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

math/tgmath.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,9 @@
921921

922922
/* Like ilogb, but returning long int. */
923923
# define llogb(Val) __TGMATH_UNARY_REAL_RET_ONLY (Val, llogb)
924+
#endif
924925

926+
#if __GLIBC_USE (IEC_60559_BFP_EXT)
925927
/* Return value with maximum magnitude. */
926928
# define fmaxmag(Val1, Val2) __TGMATH_BINARY_REAL_ONLY (Val1, Val2, fmaxmag)
927929

0 commit comments

Comments
 (0)