Skip to content

Instantly share code, notes, and snippets.

View beru's full-sized avatar
😷
Caught 2019-nCoV

beru beru

😷
Caught 2019-nCoV
View GitHub Profile
#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());