util: Add ALIGN_UP macro

pull/118/merge
Andri Yngvason 2024-03-16 16:46:14 +00:00
parent bd9daa85c3
commit 54fb881aab
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@
#include <sys/types.h> #include <sys/types.h>
#define UDIV_UP(a, b) (((a) + (b) - 1) / (b)) #define UDIV_UP(a, b) (((a) + (b) - 1) / (b))
#define ALIGN_UP(a, b) ((b) * UDIV_UP((a), (b)))
extern const char* wayvnc_version; extern const char* wayvnc_version;