From a0a68b7b3a5430fea5aaa2ad1da75fdda5cd5c7a Mon Sep 17 00:00:00 2001 From: Fabrice Date: Wed, 11 Feb 2026 22:50:21 +0100 Subject: packing corrections --- src/utils.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/utils.h') 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 struct is_same { static constexpr bool value = false; -- cgit v1.2.3