mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
LibM: Define HUGE_VAL{F,L} in terms of compiler builtins
This commit is contained in:
parent
e9533da0e7
commit
e4197b7854
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ __BEGIN_DECLS
|
||||||
#define MATH_ERREXCEPT 2
|
#define MATH_ERREXCEPT 2
|
||||||
#define math_errhandling MATH_ERREXCEPT
|
#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 INFINITY __builtin_huge_val()
|
||||||
#define NAN __builtin_nan("")
|
#define NAN __builtin_nan("")
|
||||||
#define MAXFLOAT FLT_MAX
|
#define MAXFLOAT FLT_MAX
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue