1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-03 08:16:01 +00:00
This commit is contained in:
fig02 2022-02-09 00:51:23 -05:00
parent 9dc6860e62
commit 28719443c2
2 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@ f32 fabsf(f32 f);
#define fabsf __builtin_fabsf #define fabsf __builtin_fabsf
f32 __floatundisf(u32 c); f32 __floatundisf(u32 c);
f64 __floatundidf(u32 c); f64 __floatundidf(u32 c);
f32 __powisf2(f32 a, s32 b);
unsigned long __udivdi3(unsigned long a, unsigned long b); unsigned long __udivdi3(unsigned long a, unsigned long b);
#else #else
#pragma intrinsic(fabsf) #pragma intrinsic(fabsf)

View file

@ -70,7 +70,7 @@ f64 __floatundidf(u32 c) {
f32 __powisf2(f32 a, s32 b) { f32 __powisf2(f32 a, s32 b) {
const s32 recip = b < 0; const s32 recip = b < 0;
f32 r = 1; f32 r = 1;
while (1) { while (1) {
if (b & 1) { if (b & 1) {
r *= a; r *= a;
@ -85,4 +85,4 @@ f32 __powisf2(f32 a, s32 b) {
a *= a; a *= a;
} }
return recip ? 1/r : r; return recip ? 1/r : r;
} }