mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-29 19:01:22 +00:00
32c613e8ec
* Update Dilithium * Alternative montgomery reduce to avoid i386 functest errors * Explicit casts for msvc * More casts; bump upstream version; fix metadata * another cast
20 lines
422 B
C
20 lines
422 B
C
#ifndef PQCLEAN_DILITHIUM2_AVX2_ALIGN_H
|
|
#define PQCLEAN_DILITHIUM2_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_INT32(N) \
|
|
union { \
|
|
int32_t coeffs[N]; \
|
|
__m256i vec[((N)+7)/8]; \
|
|
}
|
|
|
|
#endif
|