mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 14:19:15 +00:00
LibM: Define MAXFLOAT
Looks like a POSIX extension
This commit is contained in:
parent
86ee9211be
commit
e9533da0e7
Notes:
sideshowbarker
2024-07-18 21:21:28 +09:00
Author: https://github.com/RealKC
Commit: e9533da0e7
Pull-request: https://github.com/SerenityOS/serenity/pull/5792
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <float.h>
|
||||
#include <limits.h>
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
|
@ -44,6 +45,7 @@ __BEGIN_DECLS
|
|||
#define HUGE_VAL 1e10000
|
||||
#define INFINITY __builtin_huge_val()
|
||||
#define NAN __builtin_nan("")
|
||||
#define MAXFLOAT FLT_MAX
|
||||
#define M_E 2.718281828459045
|
||||
#define M_PI 3.141592653589793
|
||||
#define M_PI_2 1.570796326794896
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue