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
Notes: sideshowbarker 2024-07-18 21:21:24 +09:00

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