It's handy to use ilog2 in the format header for defining shifts based on values. Add a userspace helper that uses glibc's log2 functions. Signed-off-by: Zach Brown <zab@versity.com>