mirror of
git://git.musl-libc.org/musl
synced 2025-02-06 14:02:10 +00:00
DECIMAL_DIG is not the same as LDBL_DIG type_DIG is the maximimum number of decimal digits that can survive a round trip from decimal to type and back to decimal. DECIMAL_DIG is the minimum number of decimal digits required in order for any floating point type to survive the round trip to decimal and back, and it is generally larger than LDBL_DIG. since the exact formula is non-trivial, and defining it larger than necessary may be legal but wasteful, just define the right value in bits/float.h.
17 lines
385 B
C
17 lines
385 B
C
#define FLT_ROUNDS 1
|
|
#define FLT_EVAL_METHOD 1
|
|
|
|
#define LDBL_MIN 3.3621031431120935063e-4932L
|
|
#define LDBL_MAX 1.1897314953572317650e+4932L
|
|
#define LDBL_EPSILON 1.0842021724855044340e-19L
|
|
|
|
#define LDBL_MANT_DIG 64
|
|
#define LDBL_MIN_EXP (-16381)
|
|
#define LDBL_MAX_EXP 16384
|
|
|
|
#define LDBL_DIG 18
|
|
#define LDBL_MIN_10_EXP (-4931)
|
|
#define LDBL_MAX_10_EXP 4932
|
|
|
|
#define DECIMAL_DIG 21
|