wut/libraries/libwhb/include/whb/align.h
2018-05-23 11:10:10 +01:00

21 lines
237 B
C

#pragma once
#include <wut.h>
/**
* \defgroup whb_align Align
* \ingroup whb
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
#define WHBAlignUp(val, align) ((val + align - 1) & ~(align - 1))
#ifdef __cplusplus
}
#endif
/** @} */