summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2010-10-27 20:51:45 +0900
committertmk <nobody@nowhere>2010-10-27 22:56:01 +0900
commit2f80e790c6310ad24a4cb3d4a72c31314364fef7 (patch)
treeaad001abdb61ff736e580f98184ab7cd9e870648 /util.h
parent461e0d3d8c82cc78d29d3115af3c417bb51bb50f (diff)
new build method for macway
Diffstat (limited to 'util.h')
-rw-r--r--util.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/util.h b/util.h
index 256bda020c..2b607ad284 100644
--- a/util.h
+++ b/util.h
@@ -1,7 +1,17 @@
#ifndef UTIL_H
#define UTIL_H 1
-#define XSTR(s) STR(s)
-#define STR(s) #s
+#include <stdint.h>
+
+// convert to L string
+#define LSTR(s) XLSTR(s)
+#define XLSTR(s) L ## #s
+// convert to string
+#define STR(s) XSTR(s)
+#define XSTR(s) #s
+
+
+int bitpop(uint8_t bits);
+int biton(uint8_t bits);
#endif