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 | |
parent | 46db37289f917e23877a0e0df88cbb150805bc97 (diff) | |
download | musl-326e5c2e27224e3323e54f37621d55c40ebae87c.tar.gz 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')
-rw-r--r-- | arch/arm/bits/float.h | 8 | ||||
-rw-r--r-- | arch/microblaze/bits/float.h | 8 | ||||
-rw-r--r-- | arch/mips/bits/float.h | 8 | ||||
-rw-r--r-- | arch/powerpc/bits/float.h | 8 |
4 files changed, 16 insertions, 16 deletions
diff --git a/arch/arm/bits/float.h b/arch/arm/bits/float.h index 89e9eb6e..ec46b94b 100644 --- a/arch/arm/bits/float.h +++ b/arch/arm/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) diff --git a/arch/microblaze/bits/float.h b/arch/microblaze/bits/float.h index 89e9eb6e..ec46b94b 100644 --- a/arch/microblaze/bits/float.h +++ b/arch/microblaze/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) 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) diff --git a/arch/powerpc/bits/float.h b/arch/powerpc/bits/float.h index 89e9eb6e..ec46b94b 100644 --- a/arch/powerpc/bits/float.h +++ b/arch/powerpc/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) |