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
/
strchr.S
blob
e00d16cac9687a48556ac135c29af9e16e766f42
1
/*
2
* linux/arch/arm/lib/strchr.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(strchr)
14
1: ldrb r2, [r0], #1
15
teq r2, r1
16
teqne r2, #0
17
bne 1b
18
teq r2, #0
19
moveq r0, #0
20
subne r0, r0, #1
21
RETINSTR(mov,pc,lr)