1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:47:35 +00:00

LibM: Define HUGE_VAL{F,L} in terms of compiler builtins

This commit is contained in:
Mițca Dumitru 2021-03-14 20:13:25 +02:00 committed by Andreas Kling
parent e9533da0e7
commit e4197b7854

View file

@ -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