Source code for the Trusted Boot Module.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
tbm-mcu/source/bitops.c

11 lines
112 B

#include <bitops.h>
unsigned ilog2(unsigned n)
{
unsigned ret = 0;
while (n >>= 1)
++ret;
return ret;
}