Adjust __MATH_EVAL_FMT2 definition to handle _Float16 better.
[glibc.git] / include / float.h
blob939c83de4f5ac29b4e5385bced24cf8f3bce1096
1 #ifndef _LIBC_FLOAT_H
2 #define _LIBC_FLOAT_H
4 #define __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION
5 #include <bits/libc-header-start.h>
7 #ifndef _ISOMAC
8 # define __STDC_WANT_IEC_60559_TYPES_EXT__
9 #endif
11 #include_next <float.h>
13 /* Supplement float.h macros for _Float128 for older compilers
14 which do not yet support the type. These are described in
15 TS 18661-3. */
16 #include <features.h>
17 #include <bits/floatn.h>
18 #if !__GNUC_PREREQ (7, 0) \
19 && __HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
20 # define FLT128_MANT_DIG 113
21 # define FLT128_DECIMAL_DIG 36
22 # define FLT128_DIG 33
23 # define FLT128_MIN_EXP (-16381)
24 # define FLT128_MIN_10_EXP (-4931)
25 # define FLT128_MAX_EXP 16384
26 # define FLT128_MAX_10_EXP 4932
27 # define FLT128_MAX \
28 __f128 (1.18973149535723176508575932662800702e+4932)
29 # define FLT128_EPSILON \
30 __f128 (1.92592994438723585305597794258492732e-34)
31 # define FLT128_MIN \
32 __f128 (3.36210314311209350626267781732175260e-4932)
33 # define FLT128_TRUE_MIN \
34 __f128 (6.47517511943802511092443895822764655e-4966)
35 #endif
37 #endif /* _LIBC_FLOAT_H */