include/system/mul_fx.h
syMulFXArm, the 16.16 fixed-point multiply: SGL's slMulFX written out for the C compiled as ARM, where the Thumb C calls the same multiply in IWRAM. More…
Included by world_map_lines.c and system.h.
Functions
| Name | Description | |
|---|---|---|
static __inline__ FIXED | syMulFXArm (FIXED left, FIXED right) | Multiplies 16.16 fixed-point values, returning the middle 32 product bits: syIWRAMMulFX's three instructions written in place. |
Uint32 | syMathUnsignedMultiplyHigh (Uint32 a, Uint32 b) | The high word of a times b; by RECIPROCAL_OF(d), a quick a / d. |
Description
syMulFXArm, the 16.16 fixed-point multiply: SGL's slMulFX written out for the
C compiled as ARM, where the Thumb C calls the same multiply in IWRAM.
A file of its own, which system.h includes in place, because the units built
as ARM code include it without the rest of system.h: another inline seen
before their functions would renumber their labels. Its types and work areas
are in system/definitions.h and system/globals.h.
Functions in detail
syMulFXArm
static __inline__ FIXED syMulFXArm(FIXED left, FIXED right)
Multiplies 16.16 fixed-point values, returning the middle 32 product bits:
syIWRAMMulFX's three instructions written in place.
Referenced by fdWorldMapUpdateAffineLines().
Definition at line 17 of file mul_fx.h.
syMathUnsignedMultiplyHigh
Uint32 syMathUnsignedMultiplyHigh(Uint32 a, Uint32 b)
The high word of a times b; by RECIPROCAL_OF(d), a quick a / d.
Referenced by btDMAStopDMA3(), gmUnitCalculateBaseElements(), mnStringFormatNumber() and syStringFormatDecimal().
Definition at line 41 of file mul_fx.h.