Skip to content
🌋️
Alchemy
Theme: Weyard
Theme: Modern
Mode: Auto
Mode: Light
Mode: Dark
Alchemy
Source
Reference
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
12
s32
Trig_Sin
(
s32
angle);
13
s32
Trig_Cos
(
s32
angle);
14
15
s32
__divsi3
(
s32
numerator,
s32
denominator);
16
s32
__modsi3
(
s32
numerator,
s32
denominator);
17
18
#endif
__divsi3
s32 __divsi3(s32, s32)
Trig_Cos
s32 Trig_Cos(s32 angle)
Trig_Sin
s32 Trig_Sin(s32 angle)
__modsi3
s32 __modsi3(s32 numerator, s32 denominator)
types.h
The integer types, TRUE, UNUSED and the fixed-address macros.
s32
signed int s32
Definition
types.h:14
include
lib
fixed_math.h