mirror of
https://github.com/henrydcase/pqc.git
synced 2024-12-02 20:31:28 +00:00
23 lines
563 B
C
23 lines
563 B
C
|
#ifndef PQCLEAN_DILITHIUM3_AVX2_ALIGNMENT_H
|
||
|
#define PQCLEAN_DILITHIUM3_AVX2_ALIGNMENT_H
|
||
|
|
||
|
#define ALIGNED_UINT8(N) \
|
||
|
union { \
|
||
|
uint32_t as_arr[N]; \
|
||
|
__m256i as_vec[(N)/32]; \
|
||
|
}
|
||
|
|
||
|
#define ALIGNED_UINT32(N) \
|
||
|
union { \
|
||
|
uint32_t as_arr[N]; \
|
||
|
__m256i as_vec[(N)/8]; \
|
||
|
}
|
||
|
|
||
|
#define ALIGNED_UINT64(N) \
|
||
|
union { \
|
||
|
uint64_t as_arr[N]; \
|
||
|
__m256i as_vec[(N)/8]; \
|
||
|
}
|
||
|
|
||
|
#endif //PQCLEAN_DILITHIUM3_AVX2_ALIGNMENT_H
|