Alchemy
Loading...
Searching...
No Matches

mulq16.h File Reference

MulQ16, the 16.16 fixed-point multiply. More...

Go to the source code of this file.

Functions

static __inline__ s32 MulQ16 (s32 left, s32 right)
 Multiplies 16.16 fixed-point values, returning the middle 32 product bits.

Detailed Description

MulQ16, the 16.16 fixed-point multiply.

Definition in file mulq16.h.

Function Documentation

◆ MulQ16()

__inline__ s32 MulQ16 ( s32 left,
s32 right )
static

Multiplies 16.16 fixed-point values, returning the middle 32 product bits.

Emits IwramMulQ16's three instructions (smull, lsl, orr) at the call site.

Definition at line 18 of file mulq16.h.

Referenced by MulQ16(), Object_UpdateAll(), and Transform_UpdateVertices().