1243791Sdim/*===---- __wmmintrin_pclmul.h - AES intrinsics ----------------------------===
2243791Sdim *
3243791Sdim * Permission is hereby granted, free of charge, to any person obtaining a copy
4243791Sdim * of this software and associated documentation files (the "Software"), to deal
5243791Sdim * in the Software without restriction, including without limitation the rights
6243791Sdim * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7243791Sdim * copies of the Software, and to permit persons to whom the Software is
8243791Sdim * furnished to do so, subject to the following conditions:
9243791Sdim *
10243791Sdim * The above copyright notice and this permission notice shall be included in
11243791Sdim * all copies or substantial portions of the Software.
12243791Sdim *
13243791Sdim * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14243791Sdim * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15243791Sdim * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16243791Sdim * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17243791Sdim * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18243791Sdim * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19243791Sdim * THE SOFTWARE.
20243791Sdim *
21243791Sdim *===-----------------------------------------------------------------------===
22243791Sdim */
23243791Sdim#ifndef _WMMINTRIN_PCLMUL_H
24243791Sdim#define _WMMINTRIN_PCLMUL_H
25243791Sdim
26243791Sdim#if !defined (__PCLMUL__)
27243791Sdim# error "PCLMUL instruction is not enabled"
28243791Sdim#else
29243791Sdim#define _mm_clmulepi64_si128(__X, __Y, __I) \
30243791Sdim  ((__m128i)__builtin_ia32_pclmulqdq128((__v2di)(__m128i)(__X), \
31243791Sdim                                        (__v2di)(__m128i)(__Y), (char)(__I)))
32243791Sdim#endif
33243791Sdim
34243791Sdim#endif /* _WMMINTRIN_PCLMUL_H */
35