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

#ifndef common
#define common

using namespace BinSearch;

#define BLOCK_SIZE 16384

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


void *quantize_block(void *arguments);

#endif