mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-30 03:11:43 +00:00
20 lines
428 B
C
20 lines
428 B
C
#ifndef PQCLEAN_KYBER51290S_AVX2_ALIGN_H
|
|
#define PQCLEAN_KYBER51290S_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
|