Debian Codegraph @

thirdparty/etcpak/Tables.hpp

raw
1 #ifndef __TABLES_HPP__
2 #define __TABLES_HPP__
3
4 #include <stdint.h>
5
6 #ifdef __AVX2__
7 # include <immintrin.h>
8 #endif
9 #ifdef __SSE4_1__
10 # include <smmintrin.h>
11 #endif
12 #ifdef __ARM_NEON
13 # include <arm_neon.h>
14 #endif
15
16 extern const int32_t g_table[8][4];
17 extern const int64_t g_table256[8][4];
18
19 extern const uint32_t g_id[4][16];
20
21 extern const uint32_t g_avg2[16];
22
23 extern const uint32_t g_flags[64];
24
25 extern const int32_t g_alpha[16][8];
26 extern const int32_t g_alpha11Mul[16];
27 extern const int32_t g_alphaRange[16];
28
29 #ifdef __SSE4_1__
30 extern const __m128i g_table_SIMD[2];
31 extern const __m128i g_table128_SIMD[2];
32 extern const __m128i g_table256_SIMD[4];
33
34 extern const __m128i g_alpha_SIMD[16];
35 extern const __m128i g_alphaRange_SIMD;
36 #endif
37
38 #ifdef __AVX2__
39 extern const __m256i g_alpha_AVX[8];
40 extern const __m256i g_alphaRange_AVX;
41 #endif
42
43 #ifdef __ARM_NEON
44 extern const int16x8_t g_table128_NEON[2];
45 extern const int32x4_t g_table256_NEON[4];
46 extern const int16x8_t g_alpha_NEON[16];
47 extern const int16x8_t g_alphaRange_NEON;
48 #endif
49
50 #endif