Debian Codegraph @

src/abpoa_simd.h

raw
1 #ifndef ABPOA_SIMD_H
2 #define ABPOA_SIMD_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 typedef struct {
9 const int reg_n, bits_n, log_num, num_of_value, size;
10 int inf_min; // based on penalty of mismatch and GAP_OE1
11 } SIMD_para_t;
12
13 #define SIMDShiftOneNi8 1
14 #define SIMDShiftOneNi16 2
15 #define SIMDShiftOneNi32 4
16 #define SIMDShiftOneNi64 8
17
18 #if __AVX512BW__
19 #define SIMDTotalBytes 64
20 #elif defined(__AVX2__)
21 #define SIMDTotalBytes 32
22 #else
23 #define SIMDTotalBytes 16
24 #endif
25
26
27 abpoa_simd_matrix_t *abpoa_init_simd_matrix(void);
28 void abpoa_free_simd_matrix(abpoa_simd_matrix_t *abm);
29 void simd_output_pre_nodes(int *pre_index, int pre_n, int dp_i, int dp_j, int cur_op, int verbose);
30 int simd_abpoa_realloc(abpoa_t *ab, int gn, int qlen, abpoa_para_t *abpt, SIMD_para_t sp);
31
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif