aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/libc
diff options
context:
space:
mode:
authorspicyjpeg <thatspicyjpeg@gmail.com>2022-10-30 08:28:44 +0100
committerspicyjpeg <thatspicyjpeg@gmail.com>2022-10-30 08:28:44 +0100
commit68daf6d338aba6e32e687d4151eaddc8735227b3 (patch)
tree8cb84440219dd8041c4e84219c3742561d020819 /libpsn00b/libc
parentf6c41f3783c4fce49a9899b710ebb50ba9f647ab (diff)
downloadpsn00bsdk-68daf6d338aba6e32e687d4151eaddc8735227b3.tar.gz
Refactor dynamic linker, misc. cleanups
Diffstat (limited to 'libpsn00b/libc')
-rw-r--r--libpsn00b/libc/memset.s6
1 files changed, 1 insertions, 5 deletions
diff --git a/libpsn00b/libc/memset.s b/libpsn00b/libc/memset.s
index 73f92bd..6ef84ec 100644
--- a/libpsn00b/libc/memset.s
+++ b/libpsn00b/libc/memset.s
@@ -9,7 +9,6 @@
memset:
# If more than 16 bytes have to be written then take the "large" path,
# otherwise use the code below.
- blez $a2, .Lnull_count
addiu $t0, $a2, -16
bgtz $t0, .Llarge_fill
move $v0, $a0 # return_value = dest
@@ -39,12 +38,9 @@ memset:
sb $a1, 0xc($a0)
sb $a1, 0xd($a0)
sb $a1, 0xe($a0)
- jr $ra
sb $a1, 0xf($a0)
-
-.Lnull_count:
jr $ra
- move $v0, $a0 # return_value = dest
+ nop
.Llarge_fill:
# Initialize fast filling by repeating the fill byte 4 times, so it can be