Skip to Content
The Alchemy Project

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 actor_update_arm.c, world_map_lines.c and system.h.

Functions

NameDescription
static __inline__ FIXEDsyMulFXArm (FIXED left, FIXED right)Multiplies two 16.16 fixed-point values, returning the middle 32 bits of the product: syIWRAMMulFX written out where it is called.

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 two 16.16 fixed-point values, returning the middle 32 bits of the product: syIWRAMMulFX written out where it is called.

References Sint32.

Referenced by fdActorUpdateAll() and fdWorldMapUpdateAffineLines().

Definition at line 17 of file mul_fx.h.