summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-02-11 22:16:20 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-02-11 22:16:20 +0100
commit673211e7d3d4f1921a3323bdc2818caf4e73a696 (patch)
tree2d8fea741d1577e54c76c8392df3bce7c7d0eacb /src/utils.h
parentf1e9a3fa502843f0f3092e4bbb016c14eec43fcc (diff)
improving glyphs
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h7
1 files changed, 6 insertions, 1 deletions
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 <typename A, typename B>
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)