blob: 14a894d8760517a9865a0dcd1ce4a6031508cf7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <stdlib.h>
#include <tak.h>
extern uint32_t cnn1986_num_cached, cnn1986_max_num_cached;
typedef struct node_s {
struct node_s *next, *prev;
uint64_t key[4];
float result;
} node_t;
int cnn1986_cache_init(void);
void cnn1986_cache_free(void);
int cnn1986_cache_seek(const uint64_t key[4],
float *out_result);
int cnn1986_cache_insert(const uint64_t key[4],
const float in_result);
|