tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Importing Flash and NAND subsystem for NetBSD

On Sun, Feb 13, 2011 at 10:44:45AM -0800, Matt Thomas wrote:
> CountBitsInByte should be replaced by __builtin_popcount so that
> machines with a popcount instruction can use it.

Which ones? There is no assembler version of popcount at the moment.
SPARC64 doesn't use it for ffs(), the AMD64 one has to be detected via
CPUID. The libgcc version is pretty bad. But code can use the popcount


Home | Main Index | Thread Index | Old Index