diff options
| author | spicyjpeg <thatspicyjpeg@gmail.com> | 2023-04-04 15:39:21 +0200 |
|---|---|---|
| committer | spicyjpeg <thatspicyjpeg@gmail.com> | 2023-04-04 15:39:21 +0200 |
| commit | 651415f5b549b363dec971e2ef589cce098ee1f2 (patch) | |
| tree | 476d772f3655ca4942dcc417917043f818ec3607 /libpsn00b/libc/memcmp.s | |
| parent | 870f4dca9d7b5e86544216d0e36863d17aefef62 (diff) | |
| download | psn00bsdk-651415f5b549b363dec971e2ef589cce098ee1f2.tar.gz | |
Fix non-standard string.h functions, remove argv parser
Diffstat (limited to 'libpsn00b/libc/memcmp.s')
| -rw-r--r-- | libpsn00b/libc/memcmp.s | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/libpsn00b/libc/memcmp.s b/libpsn00b/libc/memcmp.s deleted file mode 100644 index ec1e729..0000000 --- a/libpsn00b/libc/memcmp.s +++ /dev/null @@ -1,31 +0,0 @@ -# High speed ASM memcmp implementation by Lameguy64 -# -# Part of PSn00bSDK - -.set noreorder - -.section .text - -# Arguments: -# a0 - buffer 1 address -# a1 - buffer 2 address -# a2 - bytes to compare -.global memcmp -.type memcmp, @function -memcmp: - blez $a2, .Lexit - addi $a2, -1 - lbu $v0, 0($a0) - lbu $v1, 0($a1) - addiu $a0, 1 - bne $v0, $v1, .Lmismatch - addiu $a1, 1 - b memcmp - nop -.Lmismatch: - jr $ra - sub $v0, $v1 -.Lexit: - jr $ra - move $v0, $0 -
\ No newline at end of file |
