mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03: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
@ -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…
Reference in New Issue
Block a user