summaryrefslogtreecommitdiffstats
path: root/lib/libc/mips/string/index.S
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2011-05-29 02:53:52 +0000
committerhrs <hrs@FreeBSD.org>2011-05-29 02:53:52 +0000
commit8fe640108653f13042f1b15213769e338aa524f6 (patch)
tree91f5675a7c792e61d68635707501027daa3f566f /lib/libc/mips/string/index.S
parent97f64b711efa9ff0011bef5d46cf9645638a38f9 (diff)
parentf3726238c8e8206eb1df4cfaf3f00947ceba3cce (diff)
downloadFreeBSD-src-8fe640108653f13042f1b15213769e338aa524f6.zip
FreeBSD-src-8fe640108653f13042f1b15213769e338aa524f6.tar.gz
Merge from head@222434.
Diffstat (limited to 'lib/libc/mips/string/index.S')
-rw-r--r--lib/libc/mips/string/index.S16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/mips/string/index.S b/lib/libc/mips/string/index.S
index 055baac..d1df540 100644
--- a/lib/libc/mips/string/index.S
+++ b/lib/libc/mips/string/index.S
@@ -46,14 +46,14 @@ __FBSDID("$FreeBSD$");
LEAF(index)
1:
- lbu a2, 0(a0) # get a byte
- addu a0, a0, 1
- beq a2, a1, fnd
- bne a2, zero, 1b
+ lbu a2, 0(a0) # get a byte
+ PTR_ADDU a0, a0, 1
+ beq a2, a1, fnd
+ bne a2, zero, 1b
notfnd:
- move v0, zero
- j ra
+ move v0, zero
+ j ra
fnd:
- subu v0, a0, 1
- j ra
+ PTR_SUBU v0, a0, 1
+ j ra
END(index)
OpenPOWER on IntegriCloud