repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git]
/
arch
/
sparc
/
lib
/
strncmp_64.S
blob
0656627166f38e3070731893beeba2acbad1b571
1
/*
2
* Sparc64 optimized strncmp code.
3
*
4
* Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
5
*/
6
7
#include <linux/linkage.h>
8
#include <asm/asi.h>
9
10
.text
11
ENTRY(strncmp)
12
brlez,pn %o2, 3f
13
lduba [%o0] (ASI_PNF), %o3
14
1:
15
add %o0, 1, %o0
16
ldub [%o1], %o4
17
brz,pn %o3, 2f
18
add %o1, 1, %o1
19
cmp %o3, %o4
20
bne,pn %icc, 2f
21
subcc %o2, 1, %o2
22
bne,a,pt %xcc, 1b
23
ldub [%o0], %o3
24
2:
25
retl
26
sub %o3, %o4, %o0
27
3:
28
retl
29
clr %o0
30
ENDPROC(strncmp)