mirror of
https://github.com/berdav/snappy-fox
synced 2025-02-16 19:40:42 +01:00
Coding style
This commit is contained in:
parent
c38cf21375
commit
1fb3fa4de8
@ -38,8 +38,7 @@
|
|||||||
#define prerror(f...) fprintf(stderr, "[ ERROR ]"), fprintf(stderr, f)
|
#define prerror(f...) fprintf(stderr, "[ ERROR ]"), fprintf(stderr, f)
|
||||||
|
|
||||||
/* Logarithm base two of the number */
|
/* Logarithm base two of the number */
|
||||||
static uint32_t log2_32(uint32_t n)
|
static uint32_t log2_32(uint32_t n) {
|
||||||
{
|
|
||||||
int32_t i = 0;
|
int32_t i = 0;
|
||||||
for (i = 31; i >= 0; --i) {
|
for (i = 31; i >= 0; --i) {
|
||||||
if (n & (1ul << i))
|
if (n & (1ul << i))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user