1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-12 19:04:38 +00:00

GCC support.

This commit is contained in:
ProjectRevoTPP 2021-12-02 21:00:42 -05:00
parent 4390dd74b6
commit 45ccb7fd05
7 changed files with 237 additions and 14 deletions

View file

@ -4,7 +4,14 @@
#include "z64.h"
f32 fabsf(f32 f);
#ifndef __sgi
#define fabsf __builtin_fabsf
f32 __floatundisf(u32 c);
f64 __floatundidf(u32 c);
unsigned long __udivdi3(unsigned long a, unsigned long b);
#else
#pragma intrinsic(fabsf)
#endif
f32 sqrtf(f32 f);
#pragma intrinsic(sqrtf)
f64 sqrt(f64 d);