NetBSD/sys/lib/libkern
cgd e1078396e5 copy down from libkern:
>use p->hashfraction when doing non-time-critical calculations, rather than
>using HASHFRACTION directly.  in time-critical calculations, if HASHFRACTION
>is a power of two, check that p->hashfraction == HASHFRACTION and if so do
>the calculation with the compiled-in value so that the compiler can optimize
>out (potentially) expensive divisions.  if p->hashfraction != HASHFRACTION,
>actually do the division.  This has the result that on machines with slow
>division, the division can be optimized out of the common case, but that
>if HASHFRACTION changes from the compiled-in value (for whatever reason),
>profiling will still work.  Changes suggested by Chris Torek.
1996-06-12 04:16:53 +00:00
..
arch locc() is unused. Remove it from the machine-independent kernel interface. 1996-06-10 15:33:33 +00:00
Makefile Make sure we clean up libkern.o and libkern.po, too. Closes PRs 1951 1996-05-10 21:27:32 +00:00
Makefile.inc use ' not " when passing variables to a sub-make. pr#1199/pr#1296 1996-05-20 17:23:25 +00:00
__main.c - Add missing prototypes 1996-03-14 18:52:03 +00:00
adddi3.c
anddi3.c
ashldi3.c
ashrdi3.c
bcmp.c don't include user-land headers in libkern files when compiling for 1996-04-18 02:19:59 +00:00
bzero.c don't include user-land headers in libkern files when compiling for 1996-04-18 02:19:59 +00:00
cmpdi2.c
divdi3.c
ffs.c don't include user-land headers in libkern files when compiling for 1996-04-18 02:19:59 +00:00
htonl.c Copy from libkern: 1996-05-29 23:39:30 +00:00
htons.c Copy from libkern: 1996-05-29 23:39:30 +00:00
imax.c - Add missing prototypes 1996-03-14 18:52:03 +00:00
imin.c - Add missing prototypes 1996-03-14 18:52:03 +00:00
iordi3.c
libkern.h locc() is unused. Remove it from the machine-independent kernel interface. 1996-06-10 15:33:33 +00:00
lmax.c - Add missing prototypes 1996-03-14 18:52:03 +00:00
lmin.c - Add missing prototypes 1996-03-14 18:52:03 +00:00
lshldi3.c
lshrdi3.c
max.c - Add missing prototypes 1996-03-14 18:52:03 +00:00
mcount.c copy down from libkern: 1996-06-12 04:16:53 +00:00
min.c - Add missing prototypes 1996-03-14 18:52:03 +00:00
moddi3.c
muldi3.c
negdi2.c
notdi2.c
ntohl.c Copy from libkern: 1996-05-29 23:39:30 +00:00
ntohs.c Copy from libkern: 1996-05-29 23:39:30 +00:00
qdivrem.c
quad.h don't include user-land headers in libkern files when compiling for 1996-04-18 02:19:59 +00:00
random.c
scanc.c - Add missing prototypes 1996-03-14 18:52:03 +00:00
skpc.c - Add missing prototypes 1996-03-14 18:52:03 +00:00
strcat.c don't include user-land headers in libkern files when compiling for 1996-04-18 02:19:59 +00:00
strcmp.c don't include user-land headers in libkern files when compiling for 1996-04-18 02:19:59 +00:00
strcpy.c don't include user-land headers in libkern files when compiling for 1996-04-18 02:19:59 +00:00
strlen.c don't include user-land headers in libkern files when compiling for 1996-04-18 02:19:59 +00:00
strncasecmp.c don't include user-land headers in libkern files when compiling for 1996-04-18 02:19:59 +00:00
strncmp.c don't include user-land headers in libkern files when compiling for 1996-04-18 02:19:59 +00:00
strncpy.c don't include user-land headers in libkern files when compiling for 1996-04-18 02:19:59 +00:00
subdi3.c
ucmpdi2.c
udivdi3.c
ulmax.c - Add missing prototypes 1996-03-14 18:52:03 +00:00
ulmin.c - Add missing prototypes 1996-03-14 18:52:03 +00:00
umoddi3.c
xordi3.c