summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2010-12-08 01:47:57 +0900
committertmk <nobody@nowhere>2010-12-08 01:57:55 +0900
commit51f17f02317700e64b3c1113fe230d78bac7fecd (patch)
treea040a624004cd3cec2d2fd122069554a4039b8e1 /util.c
parent66ece29b0e14534d57b680db47a5967d5264ca85 (diff)
add build option: NKRO_ENABLE(remove: USB_12KRO)
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;