mirror of
https://github.com/pret/pokeheartgold.git
synced 2024-12-13 07:46:33 +00:00
18 lines
580 B
C
18 lines
580 B
C
#pragma thumb on
|
|
// Prepare to switch the definition of FX_Mul
|
|
#ifdef FX_Mul
|
|
#undef FX_Mul
|
|
#endif
|
|
// Prepare to switch the definition of FX_MulFx64c
|
|
#ifdef FX_Mul32x64c
|
|
#undef FX_Mul32x64c
|
|
#endif
|
|
// Prepare to switch the definition of MATH_CountLeadingZeros
|
|
#ifdef MATH_CountLeadingZeros
|
|
#undef MATH_CountLeadingZeros
|
|
#endif
|
|
// Because CPU is in THUMB mode, function versions are used.
|
|
#define FX_Mul(v1, v2) FX_MulFunc(v1, v2)
|
|
#define FX_Mul32x64c(v32, v64c) FX_Mul32x64cFunc(v32, v64c)
|
|
#define MATH_CountLeadingZeros(x) MATH_CountLeadingZerosFunc(x)
|