1206084Srdivacky/*===---- wmmintrin.h - AES intrinsics ------------------------------------===
2206084Srdivacky *
3206084Srdivacky * Permission is hereby granted, free of charge, to any person obtaining a copy
4206084Srdivacky * of this software and associated documentation files (the "Software"), to deal
5206084Srdivacky * in the Software without restriction, including without limitation the rights
6206084Srdivacky * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7206084Srdivacky * copies of the Software, and to permit persons to whom the Software is
8206084Srdivacky * furnished to do so, subject to the following conditions:
9206084Srdivacky *
10206084Srdivacky * The above copyright notice and this permission notice shall be included in
11206084Srdivacky * all copies or substantial portions of the Software.
12206084Srdivacky *
13206084Srdivacky * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14206084Srdivacky * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15206084Srdivacky * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16206084Srdivacky * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17206084Srdivacky * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18206084Srdivacky * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19206084Srdivacky * THE SOFTWARE.
20206084Srdivacky *
21206084Srdivacky *===-----------------------------------------------------------------------===
22206084Srdivacky */
23206084Srdivacky
24206084Srdivacky#ifndef _WMMINTRIN_H
25206084Srdivacky#define _WMMINTRIN_H
26206084Srdivacky
27239462Sdim#include <emmintrin.h>
28239462Sdim
29239462Sdim#if !defined (__AES__) && !defined (__PCLMUL__)
30239462Sdim# error "AES/PCLMUL instructions not enabled"
31206084Srdivacky#else
32206084Srdivacky
33239462Sdim#ifdef __AES__
34243830Sdim#include <__wmmintrin_aes.h>
35206084Srdivacky#endif /* __AES__ */
36239462Sdim
37239462Sdim#ifdef __PCLMUL__
38243830Sdim#include <__wmmintrin_pclmul.h>
39239462Sdim#endif /* __PCLMUL__ */
40239462Sdim
41239462Sdim#endif /* __AES__ || __PCLMUL__ */
42206084Srdivacky#endif /* _WMMINTRIN_H */
43