mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
LibM: Define HUGE_VAL{F,L} in terms of compiler builtins
This commit is contained in:
parent
e9533da0e7
commit
e4197b7854
Notes:
sideshowbarker
2024-07-18 21:21:24 +09:00
Author: https://github.com/RealKC Commit: https://github.com/SerenityOS/serenity/commit/e4197b78547 Pull-request: https://github.com/SerenityOS/serenity/pull/5792
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue