summaryrefslogtreecommitdiffstats
path: root/encoder/util.h
blob: ec4c344a6f2980a5901ecc906e83a438353642a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef UTIL_H_
#define UTIL_H_

#include <stdint.h>

#define ARRAY_SIZE(x)		(sizeof(x) / sizeof((x)[0]))

#define BUILD_BUG_ON(x)		((void)sizeof(char[1 - 2 * !!(x)]))

typedef _Bool		bool;
#define true		((bool)(!!1))
#define false		((bool)(!!0))

#endif /* UTIL_H_ */
bues.ch cgit interface