aboutsummaryrefslogtreecommitdiff
path: root/include/cnn1986_treap_cache.h
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-23 15:37:33 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit2439dc2ab6a6c2a840c2d2c1deb3949b7b88f415 (patch)
tree3c60d1bcec14531e1734f426013ef38d1d2f4df5 /include/cnn1986_treap_cache.h
parent3f919c40804f024737bcf4da85027a980db6eb23 (diff)
Not correct usage, need to try hashing
Diffstat (limited to 'include/cnn1986_treap_cache.h')
-rw-r--r--include/cnn1986_treap_cache.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/cnn1986_treap_cache.h b/include/cnn1986_treap_cache.h
new file mode 100644
index 0000000..292e9c5
--- /dev/null
+++ b/include/cnn1986_treap_cache.h
@@ -0,0 +1,12 @@
+#include <stdlib.h>
+#include <stdint.h>
+#include <tak.h>
+
+extern uint32_t cnn1986_num_cached;
+extern uint32_t cnn1986_max_num_cached;
+
+int cnn1986_cache_init(void);
+void cnn1986_cache_free(void);
+
+int cnn1986_cache_seek(float *out_result);
+int cnn1986_cache_insert(float in_result);