summaryrefslogtreecommitdiff
path: root/quantum/bitwise.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/bitwise.c')
-rw-r--r--quantum/bitwise.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/quantum/bitwise.c b/quantum/bitwise.c
index 861cca0054..1868e14932 100644
--- a/quantum/bitwise.c
+++ b/quantum/bitwise.c
@@ -20,7 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// bit population - return number of on-bit
__attribute__((noinline)) uint8_t bitpop(uint8_t bits) {
uint8_t c;
- for (c = 0; bits; c++) bits &= bits - 1;
+ for (c = 0; bits; c++)
+ bits &= bits - 1;
return c;
/*
const uint8_t bit_count[] = { 0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4 };
@@ -30,13 +31,15 @@ __attribute__((noinline)) uint8_t bitpop(uint8_t bits) {
uint8_t bitpop16(uint16_t bits) {
uint8_t c;
- for (c = 0; bits; c++) bits &= bits - 1;
+ for (c = 0; bits; c++)
+ bits &= bits - 1;
return c;
}
uint8_t bitpop32(uint32_t bits) {
uint8_t c;
- for (c = 0; bits; c++) bits &= bits - 1;
+ for (c = 0; bits; c++)
+ bits &= bits - 1;
return c;
}