2020-07-31 07:17:42 +01:00
|
|
|
#ifndef PQCLEAN_KYBER102490S_AVX2_ALIGN_H
|
|
|
|
#define PQCLEAN_KYBER102490S_AVX2_ALIGN_H
|
2020-10-27 00:05:07 +00:00
|
|
|
|
2020-07-31 07:17:42 +01:00
|
|
|
#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
|