2020-07-31 07:17:42 +01:00
|
|
|
#ifndef PQCLEAN_KYBER768_AVX2_ALIGN_H
|
|
|
|
#define PQCLEAN_KYBER768_AVX2_ALIGN_H
|
2020-10-27 00:05:07 +00:00
|
|
|
|
2020-07-31 07:17:42 +01:00
|
|
|
#include <immintrin.h>
|
2020-10-27 13:48:42 +00:00
|
|
|
#include <stdint.h>
|
2020-07-31 07:17:42 +01:00
|
|
|
|
2020-10-27 13:48:42 +00:00
|
|
|
#define ALIGNED_UINT8(N) \
|
|
|
|
union { \
|
|
|
|
uint8_t coeffs[(N)]; \
|
|
|
|
__m256i vec[((N)+31)/32]; \
|
2020-07-31 07:17:42 +01:00
|
|
|
}
|
|
|
|
|
2020-10-27 13:48:42 +00:00
|
|
|
#define ALIGNED_INT16(N) \
|
|
|
|
union { \
|
|
|
|
int16_t coeffs[(N)]; \
|
|
|
|
__m256i vec[((N)+15)/16]; \
|
2020-07-31 07:17:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|