diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-03 22:54:32 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-03 22:54:32 -0700 |
commit | 385d7b257acf087e02114c619beee07f2b49cb41 (patch) | |
tree | 3b6d5e74f240e60a97f89046c4324ae4ff075803 /util.h | |
parent | 5b8a2d225ca3777c7b49421182bb5c1faf99ae64 (diff) |
Parse bit-fields
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -10,7 +10,8 @@ struct array { extern char *argv0; #define LEN(a) (sizeof(a) / sizeof((a)[0])) -#define ALIGNUP(x, n) (((x) + (n) - 1) & ~((n) - 1)) +#define ALIGNDOWN(x, n) ((x) & -(n)) +#define ALIGNUP(x, n) ALIGNDOWN((x) + (n) - 1, n) void warn(const char *, ...); _Noreturn void fatal(const char *fmt, ...); |