aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-06-18 13:56:29 -0700
committerEric Biggers <ebiggers@google.com>2019-06-18 13:56:29 -0700
commit5d8246cfeb8050204225ce7649955ae493d3f50b (patch)
treeafe0b06bfcf2b6fb910c58d64dbe5407cda04179
parentb09ba7eb3fa537d4d1184ea0aecd2c57ac121cce (diff)
downloadfsverity-utils-5d8246cfeb8050204225ce7649955ae493d3f50b.tar.gz
util.h: remove unused ALIGN() macro
Signed-off-by: Eric Biggers <ebiggers@google.com>
-rw-r--r--util.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/util.h b/util.h
index 75196f7..dfa10f2 100644
--- a/util.h
+++ b/util.h
@@ -58,12 +58,6 @@ typedef uint64_t u64;
#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
-/*
- * Round 'v' up to the next 'alignment'-byte aligned boundary.
- * 'alignment' must be a power of 2.
- */
-#define ALIGN(v, alignment) (((v) + ((alignment) - 1)) & ~((alignment) - 1))
-
static inline bool is_power_of_2(unsigned long n)
{
return n != 0 && ((n & (n - 1)) == 0);