-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
David S. Miller
committed
Dec 9, 2008
1 parent
ae984d7
commit 18cdae6
Showing
6 changed files
with
28 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* Sparc optimized memcmp code. | ||
* | ||
* Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) | ||
* Copyright (C) 2000, 2008 David S. Miller (davem@davemloft.net) | ||
*/ | ||
|
||
#include <linux/linkage.h> | ||
#include <asm/asm.h> | ||
|
||
.text | ||
ENTRY(memcmp) | ||
cmp %o2, 0 | ||
1: BRANCH32(be, pn, 2f) | ||
nop | ||
ldub [%o0], %g7 | ||
ldub [%o1], %g3 | ||
sub %o2, 1, %o2 | ||
add %o0, 1, %o0 | ||
add %o1, 1, %o1 | ||
subcc %g7, %g3, %g3 | ||
BRANCH32(be, pt, 1b) | ||
cmp %o2, 0 | ||
retl | ||
mov %g3, %o0 | ||
2: retl | ||
mov 0, %o0 | ||
ENDPROC(memcmp) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.