-
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.
- Loading branch information
David S. Miller
committed
Aug 3, 2011
1 parent
7857060
commit cd90294
Showing
8 changed files
with
103 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: e95ade083939dcb4b0c51c1a2c8504ea9ef3d6ef | ||
refs/heads/master: ef7c4d4675d2a9206f913f26ca1a5cd41bff9d41 |
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
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,51 @@ | ||
#include <linux/linkage.h> | ||
|
||
.text | ||
.align 32 | ||
ENTRY(__arch_hweight8) | ||
ba,pt %xcc, __sw_hweight8 | ||
nop | ||
nop | ||
ENDPROC(__arch_hweight8) | ||
.section .popc_3insn_patch, "ax" | ||
.word __arch_hweight8 | ||
sllx %o0, 64-8, %g1 | ||
retl | ||
popc %g1, %o0 | ||
.previous | ||
|
||
ENTRY(__arch_hweight16) | ||
ba,pt %xcc, __sw_hweight16 | ||
nop | ||
nop | ||
ENDPROC(__arch_hweight16) | ||
.section .popc_3insn_patch, "ax" | ||
.word __arch_hweight16 | ||
sllx %o0, 64-16, %g1 | ||
retl | ||
popc %g1, %o0 | ||
.previous | ||
|
||
ENTRY(__arch_hweight32) | ||
ba,pt %xcc, __sw_hweight32 | ||
nop | ||
nop | ||
ENDPROC(__arch_hweight32) | ||
.section .popc_3insn_patch, "ax" | ||
.word __arch_hweight32 | ||
sllx %o0, 64-32, %g1 | ||
retl | ||
popc %g1, %o0 | ||
.previous | ||
|
||
ENTRY(__arch_hweight64) | ||
ba,pt %xcc, __sw_hweight64 | ||
nop | ||
nop | ||
ENDPROC(__arch_hweight64) | ||
.section .popc_3insn_patch, "ax" | ||
.word __arch_hweight64 | ||
retl | ||
popc %o0, %o0 | ||
nop | ||
.previous |