freebsd-skq/share
Alan Somers 1b82e02f4d Add bit_count to the bitstring(3) api
Add a bit_count function, which efficiently counts the number of bits set in
a bitstring.

sys/sys/bitstring.h
tests/sys/sys/bitstring_test.c
share/man/man3/bitstring.3
	Add bit_alloc

sys/kern/subr_unit.c
	Use bit_count instead of a naive counting loop in check_unrhdr, used
	when INVARIANTS are enabled. The userland test runs about 6x faster
	in a generic build, or 8.5x faster when built for Nehalem, which has
	the POPCNT instruction.

sys/sys/param.h
	Bump __FreeBSD_version due to the addition of bit_alloc

UPDATING
	Add a note about the ABI incompatibility of the bitstring(3)
	changes, as suggested by lidl.

Suggested by:	gibbs
Reviewed by:	gibbs, ngie
MFC after:	9 days
X-MFC-With:	299090, 300538
Relnotes:	yes
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D6255
2016-05-23 20:29:18 +00:00
..
colldef Regenerate the Makefile so that actually the new generated collation are 2016-04-16 19:39:51 +00:00
ctypedef Regenerates locales Makefiles and locales 2016-04-16 17:55:11 +00:00
dict Add META_MODE support. 2015-06-13 19:20:56 +00:00
doc Don't repeat the the word 'the' 2016-05-17 12:52:31 +00:00
dtrace Remove the old version of the DTraceToolkit from the source tree. 2016-05-19 19:51:39 +00:00
examples Update share/examples/* to properly install /usr/share/examples. 2016-05-10 00:51:50 +00:00
i18n Remove exists() checks so normal out-of-date handling can be used. 2016-03-11 23:45:36 +00:00
keys META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
locale-links Regenerates locales Makefiles and locales 2016-04-16 17:55:11 +00:00
man Add bit_count to the bitstring(3) api 2016-05-23 20:29:18 +00:00
me Add META_MODE support. 2015-06-13 19:20:56 +00:00
misc Add myself to the list of src committers. I've never been added it 2016-05-12 20:04:09 +00:00
mk Properly allow META_MODE to be set from environment. 2016-05-23 17:27:42 +00:00
monetdef Regenerates locales Makefiles and locales 2016-04-16 17:55:11 +00:00
msgdef Regenerates locales Makefiles and locales 2016-04-16 17:55:11 +00:00
numericdef Regenerates locales Makefiles and locales 2016-04-16 17:55:11 +00:00
security META MODE: These need object directories to handle staging. 2015-11-26 01:14:27 +00:00
sendmail Update share/examples/* to properly install /usr/share/examples. 2016-05-10 00:51:50 +00:00
skel Use more appropriate ${SHAREDIR} rather than /usr/share. 2015-10-27 23:35:02 +00:00
snmp Add META_MODE support. 2015-06-13 19:20:56 +00:00
syscons DIRDEPS_BUILD: Run the staged bootstrap-tools version of build-tools. 2016-05-09 22:21:09 +00:00
tabset Add META_MODE support. 2015-06-13 19:20:56 +00:00
termcap Replace ln -s calls with INSTALL_SYMLINK 2015-12-04 03:17:14 +00:00
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
timedef Regenerates locales Makefiles and locales 2016-04-16 17:55:11 +00:00
vt Remove uudecode make rule for vt fonts 2016-02-29 18:35:16 +00:00
zoneinfo Rework META_TARGETS so that it automatically adds META_DEPS to the targets. 2016-04-14 21:04:42 +00:00
Makefile Merge from head 2015-10-19 11:51:10 +00:00
Makefile.inc