From 68daf6d338aba6e32e687d4151eaddc8735227b3 Mon Sep 17 00:00:00 2001 From: spicyjpeg Date: Sun, 30 Oct 2022 08:28:44 +0100 Subject: Refactor dynamic linker, misc. cleanups --- libpsn00b/libc/memset.s | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libpsn00b/libc') 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 -- cgit v1.2.3