X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Futil.h;h=7451cc084da9e4483977411dc1ed19eb99475d5a;hb=30864ea5e48c15796cc2e3e2ba4a9b50322d82a4;hp=66bccbfa580b8c68005c3a03c78786722acd03cc;hpb=62d1ebb91c7b381ce3d88aad9ee0b03bea9fce26;p=tmk_firmware.git
diff --git a/common/util.h b/common/util.h
index 66bccbf..7451cc0 100644
--- a/common/util.h
+++ b/common/util.h
@@ -16,7 +16,7 @@ along with this program. If not, see .
*/
#ifndef UTIL_H
-#define UTIL_H 1
+#define UTIL_H
#include
@@ -28,7 +28,16 @@ along with this program. If not, see .
#define XSTR(s) #s
-int bitpop(uint8_t bits);
-int biton(uint8_t bits);
+uint8_t bitpop(uint8_t bits);
+uint8_t bitpop16(uint16_t bits);
+uint8_t bitpop32(uint32_t bits);
+
+uint8_t biton(uint8_t bits);
+uint8_t biton16(uint16_t bits);
+uint8_t biton32(uint32_t bits);
+
+uint8_t bitrev(uint8_t bits);
+uint16_t bitrev16(uint16_t bits);
+uint32_t bitrev32(uint32_t bits);
#endif