Logan Chien | df4f766 | 2019-09-04 16:45:23 -0700 | [diff] [blame] | 1 | /*===------------ vpclmulqdqintrin.h - VPCLMULQDQ intrinsics ---------------=== |
| 2 | * |
| 3 | * |
| 4 | * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 5 | * See https://llvm.org/LICENSE.txt for license information. |
| 6 | * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 7 | * |
| 8 | *===-----------------------------------------------------------------------=== |
| 9 | */ |
| 10 | #ifndef __IMMINTRIN_H |
| 11 | #error "Never use <vpclmulqdqintrin.h> directly; include <immintrin.h> instead." |
| 12 | #endif |
| 13 | |
| 14 | #ifndef __VPCLMULQDQINTRIN_H |
| 15 | #define __VPCLMULQDQINTRIN_H |
| 16 | |
| 17 | #define _mm256_clmulepi64_epi128(A, B, I) \ |
Pirama Arumuga Nainar | 494f645 | 2021-12-02 10:42:14 -0800 | [diff] [blame] | 18 | ((__m256i)__builtin_ia32_pclmulqdq256((__v4di)(__m256i)(A), \ |
| 19 | (__v4di)(__m256i)(B), \ |
| 20 | (char)(I))) |
Logan Chien | df4f766 | 2019-09-04 16:45:23 -0700 | [diff] [blame] | 21 | |
Pirama Arumuga Nainar | 7e1f839 | 2021-08-16 17:30:48 -0700 | [diff] [blame] | 22 | #ifdef __AVX512FINTRIN_H |
Logan Chien | df4f766 | 2019-09-04 16:45:23 -0700 | [diff] [blame] | 23 | #define _mm512_clmulepi64_epi128(A, B, I) \ |
Pirama Arumuga Nainar | 494f645 | 2021-12-02 10:42:14 -0800 | [diff] [blame] | 24 | ((__m512i)__builtin_ia32_pclmulqdq512((__v8di)(__m512i)(A), \ |
| 25 | (__v8di)(__m512i)(B), \ |
| 26 | (char)(I))) |
Pirama Arumuga Nainar | 7e1f839 | 2021-08-16 17:30:48 -0700 | [diff] [blame] | 27 | #endif // __AVX512FINTRIN_H |
Logan Chien | df4f766 | 2019-09-04 16:45:23 -0700 | [diff] [blame] | 28 | |
| 29 | #endif /* __VPCLMULQDQINTRIN_H */ |
| 30 | |