summaryrefslogtreecommitdiff
path: root/include/libc64
diff options
context:
space:
mode:
authorDerek Hensley <hensley.derek58@gmail.com>2023-08-21 11:36:27 -0700
committerGitHub <noreply@github.com>2023-08-21 11:36:27 -0700
commit0b49159da19358a3695ff7b19ba58dcd37a1f438 (patch)
tree73b58e376b4cc4dc65e65fe2fed2aab1d3fd4238 /include/libc64
parent7562124372f89c41c6ccfd1e18398c10c8e83814 (diff)
math64 OK (#67)
* math64 OK * Header
Diffstat (limited to 'include/libc64')
-rw-r--r--include/libc64/fp.h42
-rw-r--r--include/libc64/math64.h23
2 files changed, 33 insertions, 32 deletions
diff --git a/include/libc64/fp.h b/include/libc64/fp.h
index 98de52a..aab022e 100644
--- a/include/libc64/fp.h
+++ b/include/libc64/fp.h
@@ -3,26 +3,30 @@
#include "ultra64.h"
-// void floorf();
-// void floor();
-// void lfloorf();
-// void lfloor();
-// void ceilf();
-// void ceil();
-// void lceilf();
-// void lceil();
-// void truncf();
-// void trunc();
-// void ltruncf();
-// void ltrunc();
-// void nearbyintf();
+f32 floorf(f32 x);
+f64 floor(f64 x);
+s32 lfloorf(f32 x);
+s32 lfloor(f64 x);
+
+f32 ceilf(f32 x);
+f64 ceil(f64 x);
+s32 lceilf(f32 x);
+s32 lceil(f64 x);
+
+f32 truncf(f32 x);
+f64 trunc(f64 x);
+s32 ltruncf(f32 x);
+s32 ltrunc(f64 x);
+
+f32 nearbyintf(f32 x);
f64 nearbyint(f64 x);
-// void lnearbyintf();
-// void lnearbyint();
-// void roundf();
-// void round();
-// void lroundf();
-// void lround();
+s32 lnearbyintf(f32 x);
+s32 lnearbyint(f64 x);
+
+f32 roundf(f32 x);
+f64 round(f64 x);
+s32 lroundf(f32 x);
+s32 lround(f64 x);
extern f32 qNaN0x3FFFFF;
extern f32 qNaN0x10000;
diff --git a/include/libc64/math64.h b/include/libc64/math64.h
index 73b7f62..1b8e87f 100644
--- a/include/libc64/math64.h
+++ b/include/libc64/math64.h
@@ -3,20 +3,17 @@
#include "ultra64.h"
-// void Math_FTanF();
-// void Math_FFloorF();
-// void Math_FCeilF();
-// void Math_FRoundF();
-// void Math_FTruncF();
-// void Math_FNearbyIntF();
-// void Math_FAtanTaylorQF();
-// void Math_FAtanTaylorF();
-// void Math_FAtanContFracF();
-// void fatan();
+f32 Math_FTanF(f32 x);
+f32 Math_FFloorF(f32 x);
+f32 Math_FCeilF(f32 x);
+f32 Math_FRoundF(f32 x);
+f32 Math_FTruncF(f32 x);
+f32 Math_FNearbyIntF(f32 x);
+f32 fatan(f32 x);
f32 fatan2(f32 y, f32 x);
-// void Math_FAsinF();
-// void Math_FAcosF();
+f32 Math_FAsinF(f32 x);
+f32 Math_FAcosF(f32 x);
-// extern UNK_TYPE B_800419B0_jp;
+extern s32 gFatanUseContFrac;
#endif