mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-02 08:35:08 -04:00
a5df9dddf0
* First batch some overlay
* Almost all overlay
* effect & gamestate
* kaleido stuffs
* more overlay
* more left over from code folder
* remaining hardcoded line and file
* Open & Close _DISP __FILE__ & __LINE__ clean up
* Some if (1) {} remove
* LOG_xxxx __FILE__ , __LINE__ cleaned
* ASSERT macro __FILE__ __LINE__
* mtx without line/file in functions
* " if (1) {} " & "if (0) {}" and tab/white place
* LogUtils as macro
* GameState_, GameAlloc_, SystemArena_ & ZeldaArena_
* Revert "GameState_, GameAlloc_, SystemArena_ & ZeldaArena_"
This reverts commit 0d85caaf7e
.
* Like last commit but as macro
* Fix matrix not using macros
* use function not macro
* DebugArena_* functions
GameAlloc_MallocDebug
BgCheck_PosErrorCheck as macros
removed issues with ; in macro file
25 lines
516 B
C
25 lines
516 B
C
#include "global.h"
|
|
|
|
void MtxConv_F2L(Mtx* m1, MtxF* m2) {
|
|
s32 i;
|
|
s32 j;
|
|
|
|
LOG_CHECK_NULL_POINTER("m1", m1);
|
|
LOG_CHECK_NULL_POINTER("m2", m2);
|
|
|
|
for (i = 0; i < 4; i++) {
|
|
for (j = 0; j < 4; j++) {
|
|
s32 value = (m2->mf[i][j] * 0x10000);
|
|
|
|
m1->intPart[i][j] = value >> 16;
|
|
m1->fracPart[i][j] = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
void MtxConv_L2F(MtxF* m1, Mtx* m2) {
|
|
LOG_CHECK_NULL_POINTER("m1", m1);
|
|
LOG_CHECK_NULL_POINTER("m2", m2);
|
|
guMtxL2F(m1, m2);
|
|
}
|