summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.c b/util.c
index b02d077cc3..efc7c14818 100644
--- a/util.c
+++ b/util.c
@@ -1,5 +1,6 @@
#include "util.h"
+// bit population
int bitpop(uint8_t bits)
{
int c;
@@ -8,6 +9,7 @@ int bitpop(uint8_t bits)
return c;
}
+// most significant on-bit
int biton(uint8_t bits)
{
int n = 0;