summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fastd.h b/src/fastd.h
index f68ea08..12702e7 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -349,6 +349,8 @@ static inline void fastd_string_stack_free(fastd_string_stack *str) {
}
}
+#define ALIGN8(l) (((l+7)/8)*8)
+
static inline bool timespec_after(const struct timespec *tp1, const struct timespec *tp2) {
return (tp1->tv_sec > tp2->tv_sec ||
(tp1->tv_sec == tp2->tv_sec && tp1->tv_nsec > tp2->tv_nsec));