Clean up AVOID_UB ifdefs
This commit is contained in:
1 parent
f40a1978d9
commit
5afa901fcf
35 files changed
+26
-275
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user