From b776bfaa53bc8d714700add931f9b894b2b93931 Mon Sep 17 00:00:00 2001 From: Keith Thompson Date: Wed, 11 Dec 2024 15:16:31 -0800 Subject: [PATCH] Define LDBL_MAX_10_EXP for aarch64, riscv There was a duplicate definition of LDBL_MAX_EXP, which this commit removes. There was a missing definition for LDBL_MAX_10_EXP, which this commit adds. I've confirmed the value of LDBL_MAX_10_EXP using gcc on an AARM64 Debian system (gcc 8.3.0). I've only indirectly confirmed the value on RISCV (using "#if ... #error" on godbolt.org). I'm reasonably sure this update is correct, but someone should confirm it before merging to "mob". --- include/float.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/float.h b/include/float.h index 24b7410b..4caa4236 100644 --- a/include/float.h +++ b/include/float.h @@ -53,7 +53,7 @@ #define LDBL_MIN_10_EXP (-4931) #define LDBL_MAX_EXP 16384 #define LDBL_MAX 1.18973149535723176508575932662800702e+4932L -#define LDBL_MAX_EXP 16384 +#define LDBL_MAX_10_EXP 4932 #define DECIMAL_DIG 36 #else