From e4197b78547207ce5d7c6d3c15ba9b41f3f14492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C8=9Bca=20Dumitru?= Date: Sun, 14 Mar 2021 20:13:25 +0200 Subject: [PATCH] LibM: Define HUGE_VAL{F,L} in terms of compiler builtins --- Userland/Libraries/LibM/math.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibM/math.h b/Userland/Libraries/LibM/math.h index fea9020d47..194e049162 100644 --- a/Userland/Libraries/LibM/math.h +++ b/Userland/Libraries/LibM/math.h @@ -42,7 +42,9 @@ __BEGIN_DECLS #define MATH_ERREXCEPT 2 #define math_errhandling MATH_ERREXCEPT -#define HUGE_VAL 1e10000 +#define HUGE_VALF __builtin_huge_valf() +#define HUGE_VAL __builtin_huge_val() +#define HUGE_VALL __builtin_huge_vall() #define INFINITY __builtin_huge_val() #define NAN __builtin_nan("") #define MAXFLOAT FLT_MAX