Clean up AVOID_UB ifdefs

This commit is contained in:
Arceveti
2021-09-22 11:35:17 -07:00
parent f40a1978d9
commit 5afa901fcf
35 changed files with 26 additions and 275 deletions

View File

@@ -22,11 +22,7 @@
* Thus, for non-IDO compilers we use the standard-compliant version.
*/
extern f32 gSineTable[];
#ifdef AVOID_UB
#define gCosineTable (gSineTable + 0x400)
#else
extern f32 gCosineTable[];
#endif
#define sins(x) gSineTable[(u16) (x) >> 4]
#define coss(x) gCosineTable[(u16) (x) >> 4]