yaffs: Refactor bit counting code
authorCharles Manning <cdhmanning@gmail.com>
Tue, 30 Nov 2010 01:00:00 +0000 (14:00 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Tue, 30 Nov 2010 01:00:00 +0000 (14:00 +1300)
commitacf9438692c78de0ca030e5408790572dbe06500
treec79458eff5d0e7e224bb808744d2127fdcb07e35
parent03ddd91b1bd421a53d76ebdce7bc647299c8965d
yaffs: Refactor bit counting code

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>
direct/basic-test/Makefile
direct/python/Makefile
direct/tests/Makefile
direct/timothy_tests/quick_tests/Makefile
direct/yaffs_hweight.c [new file with mode: 0644]
direct/yaffs_hweight.h [new file with mode: 0644]
direct/ydirectenv.h
yaffs_ecc.c
yaffs_tagscompat.c
yportenv_multi.h
yportenv_single.h