diff options
| author | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-10-21 13:24:54 +0200 |
|---|---|---|
| committer | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-10-21 13:24:54 +0200 |
| commit | b1632d7df0e840692612461a80d0e05d6a3228ed (patch) | |
| tree | 2f804b26c5befa1ed360db034910c8107b8c3ee6 /libpsn00b/libc | |
| parent | 982df5fe197c4db2be4bffe59a05c837b7508365 (diff) | |
| download | psn00bsdk-b1632d7df0e840692612461a80d0e05d6a3228ed.tar.gz | |
Rewrite psxsio with new API, fix compiler warnings
Diffstat (limited to 'libpsn00b/libc')
| -rw-r--r-- | libpsn00b/libc/memset.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libpsn00b/libc/memset.s b/libpsn00b/libc/memset.s index 5a1589d..73f92bd 100644 --- a/libpsn00b/libc/memset.s +++ b/libpsn00b/libc/memset.s @@ -9,6 +9,7 @@ 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 @@ -41,6 +42,10 @@ memset: jr $ra sb $a1, 0xf($a0) +.Lnull_count: + jr $ra + move $v0, $a0 # return_value = dest + .Llarge_fill: # Initialize fast filling by repeating the fill byte 4 times, so it can be # written 32 bits at a time. |
