mtxquat fixes

This commit is contained in:
gamemasterplc 2024-11-11 17:24:55 -06:00
parent 5bfbe7814b
commit 5877067872
2 changed files with 12 additions and 2 deletions

View file

@ -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,
}

View file

@ -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)
{