20c7173849
Change-Id: Id3b833d405596735becb3346f3b08c6da57033fe
9 Zeilen
274 B
C
9 Zeilen
274 B
C
#ifdef __GNUC__
|
|
# define roundup(x, y) (__builtin_constant_p (y) && powerof2 (y) \
|
|
? (((x) + (y) - 1) & ~((y) - 1)) \
|
|
: ((((x) + ((y) - 1)) / (y)) * (y)))
|
|
#else
|
|
# define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
|
|
#endif
|
|
|