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>2021-01-23 15:39:03 -0500
commitb1cba049ddb41f9b864412d038fc138014f97c3c (patch)
tree3c60d1bcec14531e1734f426013ef38d1d2f4df5 /include/cnn1986_treap_cache.h
parentc4734ea4771b8f82948875266c84d038e2820d3d (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);