aboutsummaryrefslogtreecommitdiffstats
path: root/lib/util.h
blob: a5c5463a5c7db9d88163cb2fe3f01150b2debbc7 (plain) (blame)
1
2
3
4
5
6
#define ROUND_UP(val, round_to) (((val) + (round_to - 1)) & ~(round_to - 1))

#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)

int libfuse_strtol(const char *str, long *res);