diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-10-15 17:18:48 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-10-15 17:18:48 +0200 |
commit | 955fe812dcf3a453936685be78df5c1fcc9ad26b (patch) | |
tree | eb572d7d3def0d2724ff1fd344c953b1c2d82b0b /util.h | |
parent | 2f4f29c5a7fb7e252568d1f10d87d287bc25b1f2 (diff) | |
download | passt-955fe812dcf3a453936685be78df5c1fcc9ad26b.tar passt-955fe812dcf3a453936685be78df5c1fcc9ad26b.tar.gz passt-955fe812dcf3a453936685be78df5c1fcc9ad26b.tar.bz2 passt-955fe812dcf3a453936685be78df5c1fcc9ad26b.tar.lz passt-955fe812dcf3a453936685be78df5c1fcc9ad26b.tar.xz passt-955fe812dcf3a453936685be78df5c1fcc9ad26b.tar.zst passt-955fe812dcf3a453936685be78df5c1fcc9ad26b.zip |
util: Define ROUND_UP()
...not actually used, just for completeness, as ROUND_DOWN() is
defined.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -26,6 +26,8 @@ void debug(const char *format, ...); #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) #define ROUND_DOWN(x, y) ((x) & ~((y) - 1)) +#define ROUND_UP(x, y) (((x) + (y) - 1) & ~((y) - 1)) + #define SWAP(a, b) \ do { \ |