NetBSD/lib
itohy fa5465079f Slightly improved version of ffs(3).
Partially from SHIMIZU Ryo <ryo@iij.ad.jp>.  Thanks.
Some cases are slower, but other most cases are faster.

Here's a benchmark on SH-4 200MHz.

return value	C version	previous vers	this version	speed ratio
of ffs()	(ns/call) *1	(ns/call)	(ns/call) *2	(*1/*2)
------------	------------	-------------	------------	-----------
 0		  86		 86		 81		1.06
 1		 110		 86		106 *(slower)	1.04
 2		 132		 86		106 *		1.25
 3		 165		105		117 *		1.41
 4		 201		104		116 *		1.73
 5		 237		111		107		2.21
 6		 271		111		106		2.56
 7		 307		126		116		2.65
 8		 342		125		116		2.95
 9		 376		122		126 *		2.98
10		 410		121		127 *		3.23
11		 446		139		136		3.28
12		 483		140		134		3.60
13		 518		146		125		4.14
14		 551		146		126		4.37
15		 587		161		135		4.35
16		 624		162		136		4.59
17		 658		141		139		4.73
18		 694		142		140		4.96
19		 727		160		148		4.91
20		 764		161		150		5.09
21		 799		167		141		5.67
22		 834		167		142		5.87
23		 868		181		152		5.71
24		 903		181		153		5.90
25		 939		146		140		6.71
26		 974		146		141		6.91
27		1009		166		152		6.64
28		1044		165		148		7.05
29		1080		171		141		7.66
30		1115		171		141		7.91
31		1151		185		151		7.62
32		1185		186		151		7.85
2002-08-28 15:34:35 +00:00
..
csu Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
i18n_module Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libarch Fix multiple bugs: 2002-07-19 22:03:39 +00:00
libasn1 More use of ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 13:35:05 +00:00
libbz2 Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libc Slightly improved version of ffs(3). 2002-08-28 15:34:35 +00:00
libcdk Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libcom_err More use of ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 13:35:05 +00:00
libcompat Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libcrypt Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the 2002-08-19 14:55:14 +00:00
libcrypto Belatedly bump libdes shared library major number, due to bump of 2002-08-20 13:49:55 +00:00
libcrypto_idea Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libcrypto_rc5 Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libcurses Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libdes Belatedly bump libdes shared library major number, due to bump of 2002-08-20 13:49:55 +00:00
libedit Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the 2002-08-19 14:55:14 +00:00
libform Allow either the field_check or char_check pointers to be NULL, as 2002-08-22 11:34:00 +00:00
libgssapi More use of ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 13:35:05 +00:00
libhdb More use of ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 13:35:05 +00:00
libintl - give the precedence to LC_ALL environment variable 2002-02-13 08:01:13 +00:00
libipsec Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the 2002-08-19 14:55:14 +00:00
libkadm More use of ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 13:35:05 +00:00
libkadm5clnt More use of ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 13:35:05 +00:00
libkadm5srv More use of ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 13:35:05 +00:00
libkafs Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libkdb More use of ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 13:35:05 +00:00
libkrb More use of ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 13:35:05 +00:00
libkrb5 More use of ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 13:35:05 +00:00
libkstream __STDC__ is always defined on NetBSD. 2002-05-26 16:53:30 +00:00
libkvm Use Nm instead of Xrefing ourselves. 2002-08-20 16:48:47 +00:00
libl Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libm Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the 2002-08-19 14:55:14 +00:00
libmenu Fix some off by one errors in the menu mark and unmark buffer handling. 2002-08-22 11:30:18 +00:00
libossaudio Add SOUND_MASK_* for the last SOUND_MIXER_* values that didn't have any. 2002-05-27 14:42:15 +00:00
libpcap sync partly with tcpdump.org. ok'ed by itojun 2002-08-26 11:21:18 +00:00
libpci Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libpmc ispell. 2002-08-09 10:13:07 +00:00
libposix Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libresolv Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
librmt Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the 2002-08-19 14:55:14 +00:00
libroken Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
librpcsvc Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the 2002-08-19 14:55:14 +00:00
libskey use strtok_r, as strtok can interfere with outside users. 2002-06-23 12:20:10 +00:00
libsl Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libss Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libssl Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libtelnet __STDC__ is always defined on NetBSD. 2002-05-26 22:01:47 +00:00
libterm Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the 2002-08-19 14:55:14 +00:00
libusbhid sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:36:17 +00:00
libutil Bump minor number to 3 because there are already systems with 2002-08-23 10:34:02 +00:00
libvers Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc). 2002-08-19 09:41:27 +00:00
libwrap Correct #ifdef'ed out usage of memset 2002-07-20 14:18:45 +00:00
liby Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the 2002-08-19 14:55:14 +00:00
libz Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the 2002-08-19 14:55:14 +00:00
bumpversion sweep of my licenses (userland files w/o only my copyright) for 2000-06-14 17:24:02 +00:00
checkver Ignore (to devnull) errors from ls when no libraries are installed. 2000-07-22 16:04:57 +00:00
checkvers Remove executable permission from src/lib/checkver. 2000-08-09 23:41:24 +00:00
Makefile Build libpmc. 2002-08-09 00:16:38 +00:00
Makefile.inc enable WARNS=2 2001-11-05 15:23:49 +00:00