1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-27 09:51:30 +00:00
pqcrypto/crypto_kem/kyber1024/avx2/consts.h
Thom Wiggers c0f56ccdc2 Update Kyber from upstream
Makes Kyber-AVX run on MacOS (#251)
2021-03-24 21:02:49 +00:00

21 lines
407 B
C

#ifndef PQCLEAN_KYBER1024_AVX2_CONSTS_H
#define PQCLEAN_KYBER1024_AVX2_CONSTS_H
#include "cdecl.inc"
#include "params.h"
#include <immintrin.h>
#include <stdint.h>
#define ALIGNED_UINT16_T(N) \
union { \
__m256i as_vec; \
uint16_t as_arr[(N)]; \
}
typedef ALIGNED_UINT16_T(928) qdata_t;
extern const qdata_t PQCLEAN_KYBER1024_AVX2_qdata;
#endif