11 enum { MULTIPLIER = 0x41c64e6d, INCREMENT = 0x3039 };
15 return (value << 8) >> 16;
24 u8 *coordinate = position;
28 coordinate +=
sizeof(
s32);
29 coordinate +=
sizeof(
s32);
57 ratio = (value << 8) / ratio;
61 if (ratio <= 0xFB6A) {
117 result = 0x8000 - result;
138 trial = (result << (bit + 1)) + (1 << (bit * 2));
139 if (trial <= remainder) {
static s32 Iwram_Sqrt(s32 value)
#define Iwram_MulQ16(left, right)
s32 Math_IntegerSqrt(s32 value)
Returns the integer square root of value, a bit at a time.
void Vector_AddPolarOffset(s32 radius, s32 angle, void *position)
Moves the point position by radius in direction angle on the ground plane: x by the cosine,...
u32 Random16(void)
Advances the game's random number generator (the C library's classic linear congruential one),...
s32 ArcTan2(s32 x, s32 y)
Returns the angle of the vector (x, y), in 1/65536 turns, measured from the y axis: 0 along +y,...
s32 Palette_GetBasicObjColors(void)
s32 FixedSqrt(s32 value)
Square root of a 16.16 fixed-point value, in 16.16.
const u16 gMath_TanTable[258]
Tangents scaled by 256: index i is tan(i * 45 / 128 degrees), so index 128 is tan(45 degrees).
What every part of the runtime object shares: its includes and the library call two parts make.
const u8 gSystem_BasicColorPalette[]