summaryrefslogtreecommitdiff
path: root/util.h
blob: 2b607ad284423bbf98e40c83db9c392a1c268b96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef UTIL_H
#define UTIL_H 1

#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