mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
LibM: Evaluate math macros, add M_DEG2RAD and M_RAD2DEG
This commit is contained in:
parent
9cce7f57dd
commit
3206263c2d
1 changed files with 4 additions and 2 deletions
|
@ -35,8 +35,10 @@ __BEGIN_DECLS
|
|||
#define NAN __builtin_nan("")
|
||||
#define M_E 2.718281828459045
|
||||
#define M_PI 3.141592653589793
|
||||
#define M_PI_2 (M_PI / 2)
|
||||
#define M_TAU (M_PI * 2)
|
||||
#define M_PI_2 1.570796326794896
|
||||
#define M_TAU 6.283185307179586
|
||||
#define M_DEG2RAD 0.017453292519943
|
||||
#define M_RAD2DEG 57.29577951308232
|
||||
#define M_LN2 0.69314718055995
|
||||
#define M_LN10 2.30258509299405
|
||||
#define M_SQRT2 1.4142135623730951
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue