repo.or.cz
/
davej-history.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
- pre3:
[davej-history.git]
/
arch
/
arm
/
lib
/
strrchr.S
blob
84bc6517134da3d6c7264b2346be0a64df1a3d66
1
/*
2
* linux/arch/arm/lib/strrchr.S
3
*
4
* Copyright (C) 1995-2000 Russell King
5
*
6
* ASM optimised string functions
7
*/
8
#include <linux/linkage.h>
9
#include <asm/assembler.h>
10
11
.text
12
.align 5
13
ENTRY(strrchr)
14
mov r3, #0
15
1: ldrb r2, [r0], #1
16
teq r2, r1
17
moveq r3, r0
18
teq r2, #0
19
bne 1b
20
mov r0, r3
21
RETINSTR(mov,pc,lr)