From 84b25160e7e15e7531533a9a6b22d5431d1b7629 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 20 Jun 2018 15:28:49 -0400 Subject: [PATCH] fix m68k float.h long double exponent range unlike the x86 variant, the m68k ld80 format allows (biased) exponent zero with mantissa msb set, thereby extending the normal range. --- arch/m68k/bits/float.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/m68k/bits/float.h b/arch/m68k/bits/float.h index fd02a132..0e6899d5 100644 --- a/arch/m68k/bits/float.h +++ b/arch/m68k/bits/float.h @@ -3,12 +3,12 @@ #define FLT_EVAL_METHOD 2 #define LDBL_TRUE_MIN 3.6451995318824746025e-4951L -#define LDBL_MIN 3.3621031431120935063e-4932L +#define LDBL_MIN 1.68105157155604675313e-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_MIN_EXP (-16382) #define LDBL_MAX_EXP 16384 #define LDBL_DIG 18 -- 2.25.1