1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:07:45 +00:00

LibM: Define MAXFLOAT

Looks like a POSIX extension
This commit is contained in:
Mițca Dumitru 2021-03-14 20:08:03 +02:00 committed by Andreas Kling
parent 86ee9211be
commit e9533da0e7

View file

@ -26,6 +26,7 @@
#pragma once #pragma once
#include <float.h>
#include <limits.h> #include <limits.h>
#include <sys/cdefs.h> #include <sys/cdefs.h>
@ -44,6 +45,7 @@ __BEGIN_DECLS
#define HUGE_VAL 1e10000 #define HUGE_VAL 1e10000
#define INFINITY __builtin_huge_val() #define INFINITY __builtin_huge_val()
#define NAN __builtin_nan("") #define NAN __builtin_nan("")
#define MAXFLOAT FLT_MAX
#define M_E 2.718281828459045 #define M_E 2.718281828459045
#define M_PI 3.141592653589793 #define M_PI 3.141592653589793
#define M_PI_2 1.570796326794896 #define M_PI_2 1.570796326794896