mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Add SNAN macros for more _FloatN, _FloatNx types.
This patch continues the preparation for additional _FloatN / _FloatNx type support by adding appropriately conditional definitions of SNAN* macros, corresponding to the SNANF128 definition already present. Tested for x86_64. * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF16): New macro. [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32): Likewise. [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64): Likewise. [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X): Likewise. [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X): Likewise. [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF128X): Likewise.
This commit is contained in:
13
ChangeLog
13
ChangeLog
@@ -1,5 +1,18 @@
|
|||||||
2017-10-26 Joseph Myers <joseph@codesourcery.com>
|
2017-10-26 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
|
||||||
|
(IEC_60559_TYPES_EXT)] (SNANF16): New macro.
|
||||||
|
[__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
|
||||||
|
Likewise.
|
||||||
|
[__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
|
||||||
|
Likewise.
|
||||||
|
[__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
|
||||||
|
Likewise.
|
||||||
|
[__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
|
||||||
|
Likewise.
|
||||||
|
[__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
|
||||||
|
(SNANF128X): Likewise.
|
||||||
|
|
||||||
* math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
|
* math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
|
||||||
(IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
|
(IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
|
||||||
[__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
|
[__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
|
||||||
|
18
math/math.h
18
math/math.h
@@ -112,9 +112,27 @@ __BEGIN_DECLS
|
|||||||
# define SNANL (__builtin_nansl (""))
|
# define SNANL (__builtin_nansl (""))
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
#if __HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)
|
||||||
|
# define SNANF16 (__builtin_nansf16 (""))
|
||||||
|
#endif
|
||||||
|
#if __HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)
|
||||||
|
# define SNANF32 (__builtin_nansf32 (""))
|
||||||
|
#endif
|
||||||
|
#if __HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)
|
||||||
|
# define SNANF64 (__builtin_nansf64 (""))
|
||||||
|
#endif
|
||||||
#if __HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
|
#if __HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
|
||||||
# define SNANF128 (__builtin_nansf128 (""))
|
# define SNANF128 (__builtin_nansf128 (""))
|
||||||
#endif
|
#endif
|
||||||
|
#if __HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)
|
||||||
|
# define SNANF32X (__builtin_nansf32x (""))
|
||||||
|
#endif
|
||||||
|
#if __HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)
|
||||||
|
# define SNANF64X (__builtin_nansf64x (""))
|
||||||
|
#endif
|
||||||
|
#if __HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)
|
||||||
|
# define SNANF128X (__builtin_nansf128x (""))
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Get __GLIBC_FLT_EVAL_METHOD. */
|
/* Get __GLIBC_FLT_EVAL_METHOD. */
|
||||||
#include <bits/flt-eval-method.h>
|
#include <bits/flt-eval-method.h>
|
||||||
|
Reference in New Issue
Block a user