Clean up AVOID_UB ifdefs

This commit is contained in:
Arceveti committed 2021-09-22 11:35:17 -07:00
1 parent f40a1978d9
commit 5afa901fcf
35 files changed
+26 -275

No files matched your search

-4
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]