From aa57ea5b74f81d6c9074f090338d0eae5edabfea Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Mon, 5 Feb 2018 11:39:34 +0100 Subject: [PATCH] core: instead of cpp-style, use C-style comments --- core/bitarithm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/bitarithm.c b/core/bitarithm.c index 816f0891f0..a830fdafa1 100644 --- a/core/bitarithm.c +++ b/core/bitarithm.c @@ -25,7 +25,7 @@ unsigned bitarithm_msb(unsigned v) { - register unsigned r; // result of log2(v) will go here + register unsigned r; /* result of log2(v) will go here */ #if ARCH_32_BIT register unsigned shift; @@ -37,7 +37,7 @@ unsigned bitarithm_msb(unsigned v) r |= (v >> 1); #else r = 0; - while (v >>= 1) { // unroll for more speed... + while (v >>= 1) { /* unroll for more speed... */ r++; } @@ -48,10 +48,10 @@ unsigned bitarithm_msb(unsigned v) unsigned bitarithm_bits_set(unsigned v) { - unsigned c; // c accumulates the total bits set in v + unsigned c; /* c accumulates the total bits set in v */ for (c = 0; v; c++) { - v &= v - 1; // clear the least significant bit set + v &= v - 1; /* clear the least significant bit set */ } return c;