vk: Define MAX(a, b) macro

This commit is contained in:
Chad Versace 2015-05-28 09:50:18 -07:00
parent d178e15567
commit 7cec6c5dfd
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ extern "C" {
#define anv_noreturn __attribute__((__noreturn__))
#define anv_printflike(a, b) __attribute__((__format__(__printf__, a, b)))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
static inline uint32_t
ALIGN_U32(uint32_t v, uint32_t a)
{