From 28719443c2dc1148c99df85de1aff0d37be9757c Mon Sep 17 00:00:00 2001 From: fig02 Date: Wed, 9 Feb 2022 00:51:23 -0500 Subject: [PATCH] fixes --- include/functions.h | 1 + src/boot/missing_gcc_functions.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/functions.h b/include/functions.h index 07f4fa9aec..d604da5e78 100644 --- a/include/functions.h +++ b/include/functions.h @@ -8,6 +8,7 @@ f32 fabsf(f32 f); #define fabsf __builtin_fabsf f32 __floatundisf(u32 c); f64 __floatundidf(u32 c); +f32 __powisf2(f32 a, s32 b); unsigned long __udivdi3(unsigned long a, unsigned long b); #else #pragma intrinsic(fabsf) diff --git a/src/boot/missing_gcc_functions.c b/src/boot/missing_gcc_functions.c index 441a1b8aea..a13f39080c 100644 --- a/src/boot/missing_gcc_functions.c +++ b/src/boot/missing_gcc_functions.c @@ -70,7 +70,7 @@ f64 __floatundidf(u32 c) { f32 __powisf2(f32 a, s32 b) { const s32 recip = b < 0; f32 r = 1; - + while (1) { if (b & 1) { r *= a; @@ -85,4 +85,4 @@ f32 __powisf2(f32 a, s32 b) { a *= a; } return recip ? 1/r : r; -} \ No newline at end of file +}