summaryrefslogtreecommitdiff
path: root/runtime.c
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2025-04-26 13:07:40 +0200
committerMitya Selivanov <automainint@guattari.tech>2025-04-26 13:07:40 +0200
commite0f99749e364de10917b2f06d41a0fd98048f74b (patch)
tree4bf24e80fa291196d495d4f8f5bd724cfe5ae995 /runtime.c
parentba0e0ab384f26b276c7ed658a38fef196a3ff382 (diff)
downloadreduced_system_layer-e0f99749e364de10917b2f06d41a0fd98048f74b.zip
Requests cache cleanup
Diffstat (limited to 'runtime.c')
-rw-r--r--runtime.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime.c b/runtime.c
index e0e1b5b..c91382d 100644
--- a/runtime.c
+++ b/runtime.c
@@ -797,6 +797,17 @@ static void mem_cpy_(void *dst, void *src, i64 len) {
*d = *s;
}
+static b8 mem_eq_(i64 len, void *x, void *y) {
+ u8 *i = (u8 *) x;
+ u8 *j = (u8 *) y;
+ u8 *i_end = i + len;
+
+ for (; i < i_end; ++i, ++j)
+ if (*i != *j)
+ return 0;
+ return 1;
+}
+
static f64 min2_(f64 x, f64 y) {
return x < y ? x : y;
}