projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
acf9438
)
yaffs: Refactor bit counting code
author
Charles Manning
<cdhmanning@gmail.com>
Tue, 30 Nov 2010 01:00:00 +0000
(14:00 +1300)
committer
Charles Manning
<cdhmanning@gmail.com>
Tue, 30 Nov 2010 01:00:00 +0000
(14:00 +1300)
For Linux kernel we use hweight8() and hweight32(). This allows
use of special bit-counting code instructions in processors that
do this.
The yaffs direct we now only use one set of code. There were two.
NB On x86 the yaffs hweight8 code is actually a lot faster
than the sofwtare implementation in Linux kernel.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
No differences found