mirror of
https://github.com/zeldaret/mm.git
synced 2024-11-24 05:19:53 +00:00
f642ed6eef
* boot_80086760 OK, added fp header, resplit data * Some more documentation, data imported with unions * Sweep data under the rug * Move the fp header properly * Format * include/fp.h header guards Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> * Engineer's review * Fix typo Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Rename header * while (true) Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
35 lines
545 B
C
35 lines
545 B
C
#ifndef FIXED_POINT_H
|
|
#define FIXED_POINT_H
|
|
#include "ultra64.h"
|
|
|
|
extern f32 qNaN0x3FFFFF;
|
|
extern f32 qNaN0x10000;
|
|
extern f32 sNaN0x3FFFFF;
|
|
|
|
f32 floorf(f32 x);
|
|
f64 floor(f64 x);
|
|
s32 lfloorf(f32 x);
|
|
s32 lfloor(f64 x);
|
|
|
|
f32 ceilf(f32 x);
|
|
f64 ceil(f64 x);
|
|
s32 lceilf(f32 x);
|
|
s32 lceil(f64 x);
|
|
|
|
f32 truncf(f32 x);
|
|
f64 trunc(f64 x);
|
|
s32 ltruncf(f32 x);
|
|
s32 ltrunc(f64 x);
|
|
|
|
f32 nearbyintf(f32 x);
|
|
f64 nearbyint(f64 x);
|
|
s32 lnearbyintf(f32 x);
|
|
s32 lnearbyint(f64 x);
|
|
|
|
f32 roundf(f32 x);
|
|
f64 round(f64 x);
|
|
s32 lroundf(f32 x);
|
|
s32 lround(f64 x);
|
|
|
|
#endif
|