bitops: add ilog2()

This commit is contained in:
S.J.R. van Schaik 2017-04-07 16:32:44 +02:00
parent 5387c2cdb7
commit 7be9d0f049
3 changed files with 15 additions and 0 deletions

3
include/bitops.h Normal file
View file

@ -0,0 +1,3 @@
#pragma once
unsigned ilog2(unsigned n);