diff options
| author | cadmic <cadmic24@gmail.com> | 2024-12-24 09:49:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-24 12:49:31 -0500 |
| commit | 8a48c17cc8dcb4bb6e41cb502a6242ece50ce8b9 (patch) | |
| tree | 38ba827f287dd835a029df0e9278d6c226f200fd /src | |
| parent | 970639b38b3fbf680f09f2cd057810ba8b91ed2d (diff) | |
Move D_80134488 from system_heap.c to fp.s (#2387)
* Move D_80134488 from system_heap.c to fp.s
* Add declarations
* Fix bss
Diffstat (limited to 'src')
| -rw-r--r-- | src/code/sys_math3d.c | 2 | ||||
| -rw-r--r-- | src/libc64/fp.s | 16 | ||||
| -rw-r--r-- | src/libu64/system_heap.c | 7 | ||||
| -rw-r--r-- | src/overlays/actors/ovl_Fishing/z_fishing.c | 2 | ||||
| -rw-r--r-- | src/overlays/actors/ovl_player_actor/z_player.c | 2 |
5 files changed, 19 insertions, 10 deletions
diff --git a/src/code/sys_math3d.c b/src/code/sys_math3d.c index 96b352d69..082c62fc7 100644 --- a/src/code/sys_math3d.c +++ b/src/code/sys_math3d.c @@ -5,7 +5,7 @@ #include "macros.h" #include "sys_math3d.h" -#pragma increment_block_number "gc-eu:103 gc-eu-mq:103 gc-jp:103 gc-jp-ce:103 gc-jp-mq:103 gc-us:103 gc-us-mq:103" \ +#pragma increment_block_number "gc-eu:99 gc-eu-mq:99 gc-jp:99 gc-jp-ce:99 gc-jp-mq:99 gc-us:99 gc-us-mq:99" \ "ntsc-1.0:80 ntsc-1.1:80 ntsc-1.2:79 pal-1.0:80 pal-1.1:80" s32 Math3D_LineVsLineClosestTwoPoints(Vec3f* lineAPointA, Vec3f* lineAPointB, Vec3f* lineBPointA, Vec3f* lineBPointB, diff --git a/src/libc64/fp.s b/src/libc64/fp.s index d5b42094a..117e7815e 100644 --- a/src/libc64/fp.s +++ b/src/libc64/fp.s @@ -7,6 +7,22 @@ .balign 16 #if !PLATFORM_N64 +DATA(gPositiveInfinity) + .word 0x7F800000 +ENDDATA(gPositiveInfinity) + +DATA(gNegativeInfinity) + .word 0xFF800000 +ENDDATA(gNegativeInfinity) + +DATA(gPositiveZero) + .word 0x00000000 +ENDDATA(gPositiveZero) + +DATA(gNegativeZero) + .word 0x80000000 +ENDDATA(gNegativeZero) + DATA(qNaN0x3FFFFF) .word 0x7FBFFFFF ENDDATA(qNaN0x3FFFFF) diff --git a/src/libu64/system_heap.c b/src/libu64/system_heap.c index 94926d838..1ae93e868 100644 --- a/src/libu64/system_heap.c +++ b/src/libu64/system_heap.c @@ -20,13 +20,6 @@ char sNew[] = "new"; char sNew[] = ""; #endif -#if !PLATFORM_N64 -char D_80134488[0x18] = { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x80, 0x00, 0x00, - 0xFF, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, -}; -#endif - // possibly some kind of new() function void* func_800FC800(u32 size) { DECLARE_INTERRUPT_MASK diff --git a/src/overlays/actors/ovl_Fishing/z_fishing.c b/src/overlays/actors/ovl_Fishing/z_fishing.c index ebb4a4578..0c306a0a0 100644 --- a/src/overlays/actors/ovl_Fishing/z_fishing.c +++ b/src/overlays/actors/ovl_Fishing/z_fishing.c @@ -35,7 +35,7 @@ #include "cic6105.h" #endif -#pragma increment_block_number "gc-eu:170 gc-eu-mq:170 gc-jp:170 gc-jp-ce:170 gc-jp-mq:170 gc-us:170 gc-us-mq:170" \ +#pragma increment_block_number "gc-eu:166 gc-eu-mq:166 gc-jp:166 gc-jp-ce:166 gc-jp-mq:166 gc-us:166 gc-us-mq:166" \ "ntsc-1.0:121 ntsc-1.1:121 ntsc-1.2:121 pal-1.0:121 pal-1.1:121" #define FLAGS ACTOR_FLAG_UPDATE_CULLING_DISABLED diff --git a/src/overlays/actors/ovl_player_actor/z_player.c b/src/overlays/actors/ovl_player_actor/z_player.c index 0c10cbc4d..e7433105a 100644 --- a/src/overlays/actors/ovl_player_actor/z_player.c +++ b/src/overlays/actors/ovl_player_actor/z_player.c @@ -345,7 +345,7 @@ static s32 sSavedCurrentMask; static Vec3f sInteractWallCheckResult; static Input* sControlInput; -#pragma increment_block_number "gc-eu:192 gc-eu-mq:192 gc-jp:160 gc-jp-ce:160 gc-jp-mq:160 gc-us:160 gc-us-mq:160" \ +#pragma increment_block_number "gc-eu:160 gc-eu-mq:160 gc-jp:160 gc-jp-ce:160 gc-jp-mq:160 gc-us:160 gc-us-mq:160" \ "ntsc-1.0:128 ntsc-1.1:128 ntsc-1.2:128 pal-1.0:128 pal-1.1:128" // .data |
