فهرست منبع

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.
Rich Felker 11 سال پیش
والد
کامیت
326e5c2e27
4فایلهای تغییر یافته به همراه16 افزوده شده و 16 حذف شده
  1. 4 4
      arch/arm/bits/float.h
  2. 4 4
      arch/microblaze/bits/float.h
  3. 4 4
      arch/mips/bits/float.h
  4. 4 4
      arch/powerpc/bits/float.h

+ 4 - 4
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)

+ 4 - 4
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)

+ 4 - 4
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)

+ 4 - 4
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)