This introduces macro for calculating integer log2. Signed-off-by: Daniel Leung <daniel.leung@intel.com>