This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <immintrin.h> | |
#include <x86intrin.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
static inline | |
__m256i mm256_u8gather_epu8(const uint8_t* lut, __m256i vindex, __m256i andMask) { | |
__m256i lo = _mm256_unpacklo_epi8(vindex, _mm256_setzero_si256()); |