summaryrefslogtreecommitdiff
path: root/csrc/common.h
blob: 35f2463716a16325321d14516d94f1f7a6f66191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <BinSearch.h>

#ifndef common
#define common

using namespace BinSearch;

struct quantize_block_args {
    BinAlgo<Scalar, float, Direct2> *bin_searcher;
    float *code;
    float *A;
    float *absmax;
    unsigned char *out;
    int block_end;
    int block_idx;
    int threadidx;
};

#define BLOCK_SIZE 4096

void *quantize_block(void *arguments);

#endif