Add popcount(3) and the long and long long version. Name is inspired by
commita6d9642bd97240e09c13137bdc71bc2a1f7cfa93
authorJoerg Sonnenberger <joerg@NetBSD.org>
Tue, 21 Jul 2009 13:18:44 +0000 (21 13:18 +0000)
committerJoerg Sonnenberger <joerg@NetBSD.org>
Tue, 21 Jul 2009 13:18:44 +0000 (21 13:18 +0000)
treef8e736095ae48a9aded69ccb1addcda383793306
parenta401daedeb02ec9ccdc75c31fe21d620404956c7
Add popcount(3) and the long and long long version. Name is inspired by
gnulib, the implementation goes back to the AMD Software Optimizer
guide. A number of platforms will want to replace the C version with
assembler code using native instructions.
14 files changed:
distrib/sets/lists/comp/mi
distrib/sets/lists/tests/mi
etc/mtree/NetBSD.dist
include/strings.h
lib/libc/string/Makefile.inc
lib/libc/string/popcount.3 [new file with mode: 0644]
lib/libc/string/popcount.c [new file with mode: 0644]
lib/libc/string/popcountl.c [new file with mode: 0644]
lib/libc/string/popcountll.c [new file with mode: 0644]
tests/lib/libc/Atffile
tests/lib/libc/Makefile
tests/lib/libc/string/Atffile [copied from tests/lib/libc/Atffile with 68% similarity]
tests/lib/libc/string/Makefile [new file with mode: 0644]
tests/lib/libc/string/t_popcount.c [new file with mode: 0644]