URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 1593 to Rev 1594
- ↔ Reverse comparison
Rev 1593 → Rev 1594
/trunk/or1ksim/support/misc.c
30,6 → 30,8
|
int is_power2 (int x) |
{ |
if(!x) |
return 0; |
while (!(x & 1)) |
x >>= 1; |
return x == 1; |