From f3a0285038a8dfbaf48827f2e93395269299b1b8 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Mon, 8 Nov 2021 23:08:11 +1000 Subject: [PATCH] Fix build maybe --- src/lib/lib_47d20.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/lib/lib_47d20.c b/src/lib/lib_47d20.c index de44b4224..443081fec 100644 --- a/src/lib/lib_47d20.c +++ b/src/lib/lib_47d20.c @@ -1,13 +1,16 @@ +// The pragma statement below must not fall on a 2^16 byte boundary after +// pre-processing because it can cause cfe to crash. So it's placed above the +// includes to ensure it isn't. +float fabsf(float value); + +#pragma intrinsic (fabsf) + #include #include "constants.h" #include "bss.h" #include "data.h" #include "types.h" -f32 fabsf(f32 value); - -#pragma intrinsic (fabsf) - f32 func00047d20(f32 arg0) { f32 sp1c; @@ -20,7 +23,7 @@ f32 func00047d20(f32 arg0) sp0c = fabsf(arg0); - if (sp0c < 1.1920929e-7f) { + if (sp0c < 0.00000011920929f) { return 1; }