NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
math_double.h
1#ifndef MSL_MATH_DOUBLE_H
2#define MSL_MATH_DOUBLE_H
3#include <types.h>
4
5#include <internal/fdlibm_public.h>
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10inline float acosf(float x) {
11 return acos(x);
12}
13inline float asinf(float x) {
14 return asin(x);
15}
16inline float atan2f(float x, float y) {
17 return atan2(x, y);
18}
19inline float ceilf(float x) {
20 return ceil(x);
21}
22inline float cosf(float x) {
23 return cos(x);
24}
25inline float sinf(float x) {
26 return sin(x);
27}
28inline float sqrtf(float x) {
29 return sqrt(x);
30}
31inline float tanf(float x) {
32 return tan(x);
33}
34inline float floorf(float x) {
35 return floor(x);
36}
37inline float fmodf(float x, float y) {
38 return fmod(x, y);
39}
40
41inline float ldexpf(float value, int exp) {
42 return ldexp(value, exp);
43}
44
45inline float modff(float x, float* iptr) {
46 float frac;
47 double intg;
48
49 frac = modf(x, &intg);
50 *iptr = intg;
51
52 return frac;
53}
54
55float fabsf(float x);
56
57#ifdef __cplusplus
58}
59#endif
60#endif