diff options
Diffstat (limited to 'src/utils.h')
| -rw-r--r-- | src/utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h index 10bdd88..00be767 100644 --- a/src/utils.h +++ b/src/utils.h @@ -74,6 +74,11 @@ static inline u32 wayc_min(u32 a, u32 b) { return a > b ? a : b; } #define WAYC_FRAC_BITS 6 #define WAYC_SCALE (1 << WAYC_FRAC_BITS) +#define WAYC_X(v) ((v)[0]) +#define WAYC_Y(v) ((v)[1]) + +static inline usize wayc_max(usize a, usize b) { return a > b ? a : b; } + template <typename A, typename B> struct is_same { static constexpr bool value = false; |
