Alchemy
Loading...
Searching...
No Matches

fixed_math.h

Go to the documentation of this file.
1#ifndef ALCHEMY_FIXED_MATH_H
2#define ALCHEMY_FIXED_MATH_H
3
4/// @file
5/// 16.16 fixed-point constants, sine and cosine, and the library division.
6
7#include "types.h"
8
9/// One in the engine's signed 16.16 fixed-point format.
10#define Q16_ONE (1 << 16)
11
14
15s32 __divsi3(s32 numerator, s32 denominator);
16s32 __modsi3(s32 numerator, s32 denominator);
17
18#endif
s32 __divsi3(s32, s32)
s32 Trig_Cos(s32 angle)
s32 Trig_Sin(s32 angle)
s32 __modsi3(s32 numerator, s32 denominator)
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14