projects
/
retrobench
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
82a8bfcd2bbb1d773127b2f2c45910ac387cda48
[retrobench]
/
src
/
util.c
1
#include "util.h"
2
3
int mask_to_shift(unsigned int mask)
4
{
5
int s = 0;
6
if(mask) {
7
while(!(mask & 1)) {
8
mask >>= 1;
9
s++;
10
}
11
}
12
return s;
13
}