projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20140225-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
types.h
diff --git
a/src/libgame/types.h
b/src/libgame/types.h
index 6e55364cb9ddd40945865a5eda9cbd262324c8ac..86514b000d87f04edf5adbd7e73eb2fa8b1488fa 100644
(file)
--- a/
src/libgame/types.h
+++ b/
src/libgame/types.h
@@
-66,6
+66,10
@@
typedef unsigned char byte;
#define EVEN(a) (((a) & 1) == 0)
#endif
#define EVEN(a) (((a) & 1) == 0)
#endif
+#ifndef CEIL
+#define CEIL(a, b) (((a) + (b) - 1) / (b))
+#endif
+
#define SIZEOF_ARRAY(array, type) (sizeof(array) / sizeof(type))
#define SIZEOF_ARRAY_INT(array) SIZEOF_ARRAY(array, int)
#define SIZEOF_ARRAY(array, type) (sizeof(array) / sizeof(type))
#define SIZEOF_ARRAY_INT(array) SIZEOF_ARRAY(array, int)