summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/utils.h
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2006-04-04 03:51:47 +0000
committerjasone <jasone@FreeBSD.org>2006-04-04 03:51:47 +0000
commitecc57500104c134a8f529cf4a64988e635ba5dc9 (patch)
treea58eaa2902cadc5f1e6b6e4a39684e7c60107be4 /lib/libc/regex/utils.h
parentf9219341315638eceb55b349a636f68e819c824c (diff)
downloadFreeBSD-src-ecc57500104c134a8f529cf4a64988e635ba5dc9.zip
FreeBSD-src-ecc57500104c134a8f529cf4a64988e635ba5dc9.tar.gz
Refactor per-run bitmap manipulation functions so that bitmap offsets only
have to be calculated once per allocator operation. Make nil const. Update various comments. Remove/avoid division where possible. For the one division operation that remains in the critical path, add a switch statement that has a case for each small size class, and do division with a constant divisor in each case. This allows the compiler to generate optimized code that does not use hardware division [1]. Obtained from: peter [1]
Diffstat (limited to 'lib/libc/regex/utils.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud