NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
math.h
1
#ifndef MSL_MATH_H
2
#define MSL_MATH_H
3
#include <types.h>
4
5
#include <internal/float.h>
6
#include <internal/math_api.h>
7
#include <internal/math_double.h>
8
#include <internal/math_ppc.h>
9
#include <internal/math_sun.h>
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
14
#ifdef __CWCC__
15
#define fabs(x) __fabs(x)
16
#endif
17
18
#define NAN (*(float*)&__float_nan);
19
#define HUGE_VALF (*(float*)&__float_huge);
20
#define HUGE_VAL (*(float*)&__double_huge);
21
22
#define FP_NAN 1
23
#define FP_INFINITE 2
24
#define FP_ZERO 3
25
#define FP_NORMAL 4
26
#define FP_SUBNORMAL 5
27
28
#define M_PI 3.141592653589793f
29
#define M_SQRT3 1.73205f
30
31
#define FLT_EPSILON 1.19209289550781e-7f
32
33
#define fpclassify(x) \
34
(sizeof(x) == sizeof(float) \
35
? __fpclassifyf(x) \
36
: (sizeof(x) == sizeof(double) ? __fpclassifyd(x) : __fpclassify(x)))
37
38
#define isfinite(x) (fpclassify(x) > FP_INFINITE)
39
#define isinfinite(x) (fpclassify(x) == FP_INFINITE)
40
#define isnan(x) (fpclassify(x) == FP_NAN)
41
#define isnormal(x) (fpclassify(x) == FP_NORMAL)
42
43
#ifdef __cplusplus
44
}
45
#endif
46
#endif
include
lib
MSL
math.h
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2