1c1
< /* $NetBSD: strlen.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
---
> /* $NetBSD: strlen.S,v 1.2 2009/12/14 00:39:00 matt Exp $ */
36c36
< __FBSDID("$FreeBSD: head/lib/libc/mips/string/strlen.S 178580 2008-04-26 12:08:02Z imp $");
---
> __FBSDID("$FreeBSD: head/lib/libc/mips/string/strlen.S 209231 2010-06-16 12:55:14Z jchandra $");
40c40
< ASMSTR("$NetBSD: strlen.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
---
> ASMSTR("$NetBSD: strlen.S,v 1.2 2009/12/14 00:39:00 matt Exp $")
48c48
< addu v1, a0, 1
---
> PTR_ADDU v1, a0, 1
50,54c50,54
< lb v0, 0(a0) # get byte from string
< addu a0, a0, 1 # increment pointer
< bne v0, zero, 1b # continue if not end
< subu v0, a0, v1 # compute length - 1 for '\0' char
< j ra
---
> lb v0, 0(a0) # get byte from string
> PTR_ADDU a0, a0, 1 # increment pointer
> bne v0, zero, 1b # continue if not end
> PTR_SUBU v0, a0, v1 # compute length - 1 for '\0' char
> j ra
< /* $NetBSD: strlen.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
---
> /* $NetBSD: strlen.S,v 1.2 2009/12/14 00:39:00 matt Exp $ */
36c36
< __FBSDID("$FreeBSD: head/lib/libc/mips/string/strlen.S 178580 2008-04-26 12:08:02Z imp $");
---
> __FBSDID("$FreeBSD: head/lib/libc/mips/string/strlen.S 209231 2010-06-16 12:55:14Z jchandra $");
40c40
< ASMSTR("$NetBSD: strlen.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
---
> ASMSTR("$NetBSD: strlen.S,v 1.2 2009/12/14 00:39:00 matt Exp $")
48c48
< addu v1, a0, 1
---
> PTR_ADDU v1, a0, 1
50,54c50,54
< lb v0, 0(a0) # get byte from string
< addu a0, a0, 1 # increment pointer
< bne v0, zero, 1b # continue if not end
< subu v0, a0, v1 # compute length - 1 for '\0' char
< j ra
---
> lb v0, 0(a0) # get byte from string
> PTR_ADDU a0, a0, 1 # increment pointer
> bne v0, zero, 1b # continue if not end
> PTR_SUBU v0, a0, v1 # compute length - 1 for '\0' char
> j ra