More General Cleanup (#1638)

* LINKER_FILES in makefile

* COLPOLY_GET_NORMAL

* math header

* libc

* M_PI for cosf and sinf files

* MAXFLOAT

* Revert "MAXFLOAT"

This reverts commit 96b75ffaa8.

* Remove SHT_MINV

* SHRT_MAX

* Add M_PI

* Angle macros

* f suffix

* Format
This commit is contained in:
Derek Hensley
2024-06-03 11:33:03 -07:00
committed by GitHub
parent 312b65d5e3
commit f26e77ba40
144 changed files with 372 additions and 369 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ f32 Math_PowF(f32 base, s32 exp) {
* @remark original name: "sinf_table"
*/
f32 Math_SinF(f32 rad) {
return sins(RAD_TO_BINANG(rad)) * SHT_MINV;
return sins(RAD_TO_BINANG(rad)) * (1.0f / SHRT_MAX);
}
/**
@@ -80,7 +80,7 @@ f32 Math_SinF(f32 rad) {
* @remark original name: "cosf_table"
*/
f32 Math_CosF(f32 rad) {
return coss(RAD_TO_BINANG(rad)) * SHT_MINV;
return coss(RAD_TO_BINANG(rad)) * (1.0f / SHRT_MAX);
}
/**