2017-12-27 17:00:31 +08:00
|
|
|
/*===------------ vpclmulqdqintrin.h - VPCLMULQDQ intrinsics ---------------===
|
|
|
|
*
|
|
|
|
*
|
2019-04-09 04:51:30 +08:00
|
|
|
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
* See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2017-12-27 17:00:31 +08:00
|
|
|
*
|
|
|
|
*===-----------------------------------------------------------------------===
|
|
|
|
*/
|
|
|
|
#ifndef __IMMINTRIN_H
|
|
|
|
#error "Never use <vpclmulqdqintrin.h> directly; include <immintrin.h> instead."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __VPCLMULQDQINTRIN_H
|
|
|
|
#define __VPCLMULQDQINTRIN_H
|
|
|
|
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm256_clmulepi64_epi128(A, B, I) \
|
2017-12-27 17:00:31 +08:00
|
|
|
(__m256i)__builtin_ia32_pclmulqdq256((__v4di)(__m256i)(A), \
|
|
|
|
(__v4di)(__m256i)(B), \
|
2018-06-01 17:40:50 +08:00
|
|
|
(char)(I))
|
2017-12-27 17:00:31 +08:00
|
|
|
|
2021-03-29 02:25:21 +08:00
|
|
|
#ifdef __AVX512FINTRIN_H
|
2018-05-31 08:51:20 +08:00
|
|
|
#define _mm512_clmulepi64_epi128(A, B, I) \
|
2017-12-27 17:00:31 +08:00
|
|
|
(__m512i)__builtin_ia32_pclmulqdq512((__v8di)(__m512i)(A), \
|
|
|
|
(__v8di)(__m512i)(B), \
|
2018-06-01 17:40:50 +08:00
|
|
|
(char)(I))
|
2021-03-29 02:25:21 +08:00
|
|
|
#endif // __AVX512FINTRIN_H
|
2017-12-27 17:00:31 +08:00
|
|
|
|
2018-05-31 06:33:21 +08:00
|
|
|
#endif /* __VPCLMULQDQINTRIN_H */
|
2017-12-27 17:00:31 +08:00
|
|
|
|