aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.h b/common.h
index 2b2bfd7..30b3cea 100644
--- a/common.h
+++ b/common.h
@@ -34,7 +34,7 @@ typedef unsigned uint;
#define static_assert(x) _Static_assert(x, #x)
#define in_range(x, Lo, Hi) ((uint) (x) - (Lo) <= (Hi) - (Lo)) /* lo <= x <= hi; lo > 0, hi > 0 */
#define alignup(x, A) (((x) + ((A) - 1)) & -(A))
-#define arraylength(a) (sizeof(a) / sizeof 0[a])
+#define countof(a) (sizeof(a) / sizeof 0[a])
enum { SPANFILEBITS = 10 };
struct span {