]> granicus.if.org Git - zfs/commit
Add functions and macros as used upstream.
authorTim Chase <tim@chase2k.com>
Sun, 27 Apr 2014 01:56:03 +0000 (20:56 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 22 Jul 2014 16:47:48 +0000 (09:47 -0700)
commit7f23e0010977ffa492d6df57aee0c97ce8e74278
tree1aced52d08f23ac1d04de9e53b7dfc0391002059
parent377e12f14a2c3694c3a733782b91ae7beecc44f3
Add functions and macros as used upstream.

Added highbit64() and howmany() which are used in recent upstream
code.  Both highbit() and highbit64() should at some point be
re-factored to use the optimized fls() and fls64() functions.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #363
include/sys/sysmacros.h
module/spl/spl-generic.c