pqc/crypto_kem/kyber1024-90s/avx2/align.h
John M. Schanck 127e9ec326 Round 3 Kyber
2021-03-24 21:02:49 +00:00

20 lines
430 B
C

#ifndef PQCLEAN_KYBER102490S_AVX2_ALIGN_H
#define PQCLEAN_KYBER102490S_AVX2_ALIGN_H
#include <immintrin.h>
#include <stdint.h>
#define ALIGNED_UINT8(N) \
union { \
uint8_t coeffs[(N)]; \
__m256i vec[((N)+31)/32]; \
}
#define ALIGNED_INT16(N) \
union { \
int16_t coeffs[(N)]; \
__m256i vec[((N)+15)/16]; \
}
#endif