wut/libraries/libwhb/include/whb/align.h

21 lines
237 B
C
Raw Normal View History

2018-05-23 12:10:10 +02:00
#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
/** @} */