| 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_alphaRange[16]; |
| 27 | |
| 28 | #ifdef __SSE4_1__ |
| 29 | extern const __m128i g_table_SIMD[2]; |
| 30 | extern const __m128i g_table128_SIMD[2]; |
| 31 | extern const __m128i g_table256_SIMD[4]; |
| 32 | |
| 33 | extern const __m128i g_alpha_SIMD[16]; |
| 34 | extern const __m128i g_alphaRange_SIMD; |
| 35 | #endif |
| 36 | |
| 37 | #ifdef __AVX2__ |
| 38 | extern const __m256i g_alpha_AVX[8]; |
| 39 | extern const __m256i g_alphaRange_AVX; |
| 40 | #endif |
| 41 | |
| 42 | #ifdef __ARM_NEON |
| 43 | extern const int16x8_t g_table128_NEON[2]; |
| 44 | extern const int32x4_t g_table256_NEON[4]; |
| 45 | extern const int16x8_t g_alpha_NEON[16]; |
| 46 | extern const int16x8_t g_alphaRange_NEON; |
| 47 | #endif |
| 48 | |
| 49 | #endif |
| 50 | |