mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-23 16:08:59 +00:00
23 lines
521 B
C
23 lines
521 B
C
|
#ifndef PQCLEAN_KYBER512_AVX2_ALIGN_H
|
||
|
#define PQCLEAN_KYBER512_AVX2_ALIGN_H
|
||
|
#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
|