summaryrefslogtreecommitdiff
path: root/csrc/common.h
blob: 2f25a58f55a92088d55e6c9bf50b32795ef47a76 (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