]> git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/include/float.h
threads: enable `PTHREAD_{MUTEX,RWLOCK,COND}_INITIALIZER`. (#397)
[wasi-libc.git] / libc-top-half / musl / include / float.h
1 #ifndef _FLOAT_H
2 #define _FLOAT_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #ifdef __wasilibc_unmodified_upstream /* Use the compiler's definition of FLT_ROUNDS */
9 int __flt_rounds(void);
10 #define FLT_ROUNDS (__flt_rounds())
11 #else
12 #define FLT_ROUNDS (__builtin_flt_rounds())
13 #endif
14
15 #define FLT_RADIX 2
16
17 #define FLT_TRUE_MIN 1.40129846432481707092e-45F
18 #define FLT_MIN 1.17549435082228750797e-38F
19 #define FLT_MAX 3.40282346638528859812e+38F
20 #define FLT_EPSILON 1.1920928955078125e-07F
21
22 #define FLT_MANT_DIG 24
23 #define FLT_MIN_EXP (-125)
24 #define FLT_MAX_EXP 128
25 #define FLT_HAS_SUBNORM 1
26
27 #define FLT_DIG 6
28 #define FLT_DECIMAL_DIG 9
29 #define FLT_MIN_10_EXP (-37)
30 #define FLT_MAX_10_EXP 38
31
32 #define DBL_TRUE_MIN 4.94065645841246544177e-324
33 #define DBL_MIN 2.22507385850720138309e-308
34 #define DBL_MAX 1.79769313486231570815e+308
35 #define DBL_EPSILON 2.22044604925031308085e-16
36
37 #define DBL_MANT_DIG 53
38 #define DBL_MIN_EXP (-1021)
39 #define DBL_MAX_EXP 1024
40 #define DBL_HAS_SUBNORM 1
41
42 #define DBL_DIG 15
43 #define DBL_DECIMAL_DIG 17
44 #define DBL_MIN_10_EXP (-307)
45 #define DBL_MAX_10_EXP 308
46
47 #define LDBL_HAS_SUBNORM 1
48 #define LDBL_DECIMAL_DIG DECIMAL_DIG
49
50 #include <bits/float.h>
51
52 #ifdef __cplusplus
53 }
54 #endif
55
56 #endif