pqc/crypto_kem/kyber768-90s/avx2/align.h
Thom Wiggers c0f56ccdc2 Update Kyber from upstream
Makes Kyber-AVX run on MacOS (#251)
2021-03-24 21:02:49 +00:00

23 lines
527 B
C

#ifndef PQCLEAN_KYBER76890S_AVX2_ALIGN_H
#define PQCLEAN_KYBER76890S_AVX2_ALIGN_H
#include <immintrin.h>
#define ALIGN16_TYPE(t) \
union { \
__m128i vec; \
t orig; \
}
#define ALIGN32_ARRAY(t, s) \
union { \
__m256i vec; \
t arr[(s)]; \
}
#define ALIGN32_ARRAY_2D(t, n, m) \
union { \
__m256i vec; \
t arr[(n)][(m)]; \
}
#endif