aboutsummaryrefslogtreecommitdiff
path: root/include/cnn1986_treap_cache.h
blob: 92208b2f7134c6c6e8da0e283f8452f23eda60fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdlib.h>
#include <stdint.h>
#include <tak.h>
#include <xorshift64.h>

extern uint32_t cnn1986_num_cached;

int cnn1986_cache_init(void);
void cnn1986_cache_free(void);

int cnn1986_cache_seek(const uint64_t key, float *out_result);
int cnn1986_cache_insert(const uint64_t key, const float in_result);