Coding style

This commit is contained in:
Davide Berardi 2021-01-24 19:06:43 +01:00
parent c38cf21375
commit 1fb3fa4de8
1 changed files with 3 additions and 4 deletions

View File

@ -38,8 +38,7 @@
#define prerror(f...) fprintf(stderr, "[ ERROR ]"), fprintf(stderr, f)
/* 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;
for (i = 31; i >= 0; --i) {
if (n & (1ul << i))