Mark libgte funcs as asm (#1600)

RotMatrix
RotMatrixYXZ
RotMatrixX
RotMatrixY
RotMatrixZ
ScaleMatrix

I think these are handwritten because they heavily use $t registers,
which is not like the code gcc produces. It makes sense for these to be
hand-optimized since they are speed-critical. Also, these don't use the
`ctc2` etc. instructions so I don't think it's a mix of C and gte
macros.

I dumped all the remaining gte funcs to a gist if others want to inspect
these https://gist.github.com/sozud/62a6a4a7f751010d435714a5191c46f3
This commit is contained in:
sozud 2024-09-15 10:13:38 -07:00 committed by GitHub
parent cf1289dd43
commit 85dd4a6540
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 6 additions and 24 deletions

View File

@ -127,7 +127,7 @@ segments:
- [0x7A1C, c, psxsdk/libgte/msc09]
- [0x7ABC, c, psxsdk/libgte/mtx_00]
- [0x84DC, c, psxsdk/libgte/mtx_07]
- [0x850C, c, psxsdk/libgte/mtx_08]
- [0x850C, asm, psxsdk/libgte/mtx_08]
- [0x863C, c, psxsdk/libgte/mtx_09]
- [0x866C, c, psxsdk/libgte/mtx_10]
- [0x869C, c, psxsdk/libgte/mtx_11]
@ -149,11 +149,11 @@ segments:
- [0x8C9C, c, psxsdk/libgte/cmb_06]
- [0x8D2C, c, psxsdk/libgte/cmb_07]
- [0x8DDC, c, psxsdk/libgte/cmb_09]
- [0x8EAC, c, psxsdk/libgte/fgo_01]
- [0x913C, c, psxsdk/libgte/fgo_02]
- [0x93CC, c, psxsdk/libgte/fgo_04]
- [0x956C, c, psxsdk/libgte/fgo_05]
- [0x970C, c, psxsdk/libgte/fgo_06]
- [0x8EAC, asm, psxsdk/libgte/fgo_01]
- [0x913C, asm, psxsdk/libgte/fgo_02]
- [0x93CC, asm, psxsdk/libgte/fgo_04]
- [0x956C, asm, psxsdk/libgte/fgo_05]
- [0x970C, asm, psxsdk/libgte/fgo_06]
- [0x98AC, c, psxsdk/libgte/ratan]
- [0x9A2C, asm, psxsdk/libgte/patchgte]
- [0x9ACC, c, psxsdk/libapi/c68]

View File

@ -1,3 +0,0 @@
#include "common.h"
INCLUDE_ASM("main/nonmatchings/psxsdk/libgte/fgo_01", RotMatrix);

View File

@ -1,3 +0,0 @@
#include "common.h"
INCLUDE_ASM("main/nonmatchings/psxsdk/libgte/fgo_02", RotMatrixYXZ);

View File

@ -1,3 +0,0 @@
#include "common.h"
INCLUDE_ASM("main/nonmatchings/psxsdk/libgte/fgo_04", RotMatrixX);

View File

@ -1,3 +0,0 @@
#include "common.h"
INCLUDE_ASM("main/nonmatchings/psxsdk/libgte/fgo_05", RotMatrixY);

View File

@ -1,3 +0,0 @@
#include "common.h"
INCLUDE_ASM("main/nonmatchings/psxsdk/libgte/fgo_06", RotMatrixZ);

View File

@ -1,3 +0,0 @@
#include "common.h"
INCLUDE_ASM("main/nonmatchings/psxsdk/libgte/mtx_08", ScaleMatrix);