From 673211e7d3d4f1921a3323bdc2818caf4e73a696 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Wed, 11 Feb 2026 22:16:20 +0100 Subject: improving glyphs --- src/utils.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index f159c9b..10bdd88 100644 --- a/src/utils.h +++ b/src/utils.h @@ -19,6 +19,9 @@ typedef int16_t i16; typedef int32_t i32; typedef int64_t i64; +typedef float f32; +typedef double f64; + #if UINT64_MAX == UINTPTR_MAX typedef u64 usize; typedef i64 isize; @@ -68,6 +71,8 @@ static inline u32 wayc_min(u32 a, u32 b) { return a > b ? a : b; } #define WAYC_CONCAT(a, b) WAYC_CONCAT_IMPL(a, b) #define WAYC_UNIQUE(base) WAYC_CONCAT(base, WAYC_CONCAT(__LINE__, __COUNTER__)) +#define WAYC_FRAC_BITS 6 +#define WAYC_SCALE (1 << WAYC_FRAC_BITS) template struct is_same { @@ -106,4 +111,4 @@ struct defer_cond_s { }; #define wayc_defer_cond(func, cond, expected) \ - auto WAYC_UNIQUE(_defer_) = defer_cond_s([&]() { func; }, &cond, expected) \ No newline at end of file + auto WAYC_UNIQUE(_defer_) = defer_cond_s([&]() { func; }, &cond, expected) -- cgit v1.2.3