diff options
author | 2009-08-25 17:59:43 +0000 | |
---|---|---|
committer | 2009-08-25 17:59:43 +0000 | |
commit | 1eb28d48fb22e9416762770578f65502da1ad857 (patch) | |
tree | c7888401c25c92f4a9d262845c70c9c97ebe7ddb /sys/dev/microcode/udl/build.c | |
parent | sync (diff) | |
download | wireguard-openbsd-1eb28d48fb22e9416762770578f65502da1ad857.tar.xz wireguard-openbsd-1eb28d48fb22e9416762770578f65502da1ad857.zip |
The BUCKETINDX() giant macro is used to compute the base 2 logarithm of its
input, in order to pick the appropriate malloc() bucket.
Replace it with an inline function in kern_malloc.c, which will either
do a tightest-but-slower loop (if option SMALL_KERNEL), or a geometric search
equivalent to what the macro does, but producing smaller code (especially on
platforms which can not load large constants in one instruction).
Diffstat (limited to 'sys/dev/microcode/udl/build.c')
0 files changed, 0 insertions, 0 deletions