From 5877067872af832ede18b044caab8ddb8c9b28de Mon Sep 17 00:00:00 2001 From: gamemasterplc Date: Mon, 11 Nov 2024 17:24:55 -0600 Subject: [PATCH] mtxquat fixes --- configure.py | 8 +++++++- src/dolphin/mtx/quat.c | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/configure.py b/configure.py index 680ce836..cc9c8936 100644 --- a/configure.py +++ b/configure.py @@ -210,6 +210,12 @@ cflags_runtime = [ "-inline auto,deferred", ] +# Dolphin library flags +cflags_dolphin = [ + *cflags_base, + "-fp_contract off", +] + # Metrowerks library flags cflags_msl = [ *cflags_base, @@ -304,7 +310,7 @@ def DolphinLib(lib_name, objects): return { "lib": lib_name, "mw_version": "GC/1.2.5n", - "cflags": cflags_base, + "cflags": cflags_dolphin, "host": False, "objects": objects, } diff --git a/src/dolphin/mtx/quat.c b/src/dolphin/mtx/quat.c index a874e14c..66964bf0 100644 --- a/src/dolphin/mtx/quat.c +++ b/src/dolphin/mtx/quat.c @@ -1,5 +1,9 @@ #include "dolphin/mtx.h" -#include "math.h" + +float acosf(float x); + +float sinf(float x); +float cosf(float x); void PSQUATMultiply(register const Quaternion *a, register const Quaternion *b, register Quaternion *ab) {