From: Chad Versace Date: Thu, 28 May 2015 16:50:18 +0000 (-0700) Subject: vk: Define MAX(a, b) macro X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7cec6c5dfdc44363f340bf4f8aa93e57a5140ca3;p=mesa.git vk: Define MAX(a, b) macro --- diff --git a/src/vulkan/private.h b/src/vulkan/private.h index abc0cfb8ec2..db7f5f30af3 100644 --- a/src/vulkan/private.h +++ b/src/vulkan/private.h @@ -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) {