diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-11-20 18:28:18 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-11-20 18:28:18 -0500 |
commit | 326e5c2e27224e3323e54f37621d55c40ebae87c (patch) | |
tree | 67efe63ced15979280350ed2715419c18e0bcd62 /arch/mips | |
parent | 46db37289f917e23877a0e0df88cbb150805bc97 (diff) | |
download | musl-326e5c2e27224e3323e54f37621d55c40ebae87c.tar.gz musl-326e5c2e27224e3323e54f37621d55c40ebae87c.tar.bz2 musl-326e5c2e27224e3323e54f37621d55c40ebae87c.tar.xz musl-326e5c2e27224e3323e54f37621d55c40ebae87c.zip |
fix the nominal type of LDBL_* limits on archs with ld64
previously these macros wrongly had type double rather than long
double. I see no way an application could detect the error in C99, but
C11's _Generic can trivially detect it.
at the same time, even though these archs do not have excess
precision, the number of decimal places used to represent these
constants has been increased to 21 to be consistent with the decimal
representations used for the DBL_* macros.
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/bits/float.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/bits/float.h b/arch/mips/bits/float.h index 89e9eb6e..ec46b94b 100644 --- a/arch/mips/bits/float.h +++ b/arch/mips/bits/float.h @@ -1,10 +1,10 @@ #define FLT_ROUNDS 1 #define FLT_EVAL_METHOD 0 -#define LDBL_TRUE_MIN 4.9406564584124654e-324 -#define LDBL_MIN 2.2250738585072014e-308 -#define LDBL_MAX 1.7976931348623157e+308 -#define LDBL_EPSILON 2.2204460492503131e-16 +#define LDBL_TRUE_MIN 4.94065645841246544177e-324L +#define LDBL_MIN 2.22507385850720138309e-308L +#define LDBL_MAX 1.79769313486231570815e+308L +#define LDBL_EPSILON 2.22044604925031308085e-16L #define LDBL_MANT_DIG 53 #define LDBL_MIN_EXP (-1021) |