source: Daodan/MinGW/lib/gcc/mingw32/5.3.0/include/immintrin.h@ 1126

Last change on this file since 1126 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 4.4 KB
Line 
1/* Copyright (C) 2008-2015 Free Software Foundation, Inc.
2
3 This file is part of GCC.
4
5 GCC is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3, or (at your option)
8 any later version.
9
10 GCC is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 Under Section 7 of GPL version 3, you are granted additional
16 permissions described in the GCC Runtime Library Exception, version
17 3.1, as published by the Free Software Foundation.
18
19 You should have received a copy of the GNU General Public License and
20 a copy of the GCC Runtime Library Exception along with this program;
21 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
22 <http://www.gnu.org/licenses/>. */
23
24#ifndef _IMMINTRIN_H_INCLUDED
25#define _IMMINTRIN_H_INCLUDED
26
27#include <mmintrin.h>
28
29#include <xmmintrin.h>
30
31#include <emmintrin.h>
32
33#include <pmmintrin.h>
34
35#include <tmmintrin.h>
36
37#include <smmintrin.h>
38
39#include <wmmintrin.h>
40
41#include <avxintrin.h>
42
43#include <avx2intrin.h>
44
45#include <avx512fintrin.h>
46
47#include <avx512erintrin.h>
48
49#include <avx512pfintrin.h>
50
51#include <avx512cdintrin.h>
52
53#include <avx512vlintrin.h>
54
55#include <avx512bwintrin.h>
56
57#include <avx512dqintrin.h>
58
59#include <avx512vlbwintrin.h>
60
61#include <avx512vldqintrin.h>
62
63#include <avx512ifmaintrin.h>
64
65#include <avx512ifmavlintrin.h>
66
67#include <avx512vbmiintrin.h>
68
69#include <avx512vbmivlintrin.h>
70
71#include <shaintrin.h>
72
73#include <lzcntintrin.h>
74
75#include <bmiintrin.h>
76
77#include <bmi2intrin.h>
78
79#include <fmaintrin.h>
80
81#include <f16cintrin.h>
82
83#include <rtmintrin.h>
84
85#include <xtestintrin.h>
86
87#ifndef __RDRND__
88#pragma GCC push_options
89#pragma GCC target("rdrnd")
90#define __DISABLE_RDRND__
91#endif /* __RDRND__ */
92extern __inline int
93__attribute__((__gnu_inline__, __always_inline__, __artificial__))
94_rdrand16_step (unsigned short *__P)
95{
96 return __builtin_ia32_rdrand16_step (__P);
97}
98
99extern __inline int
100__attribute__((__gnu_inline__, __always_inline__, __artificial__))
101_rdrand32_step (unsigned int *__P)
102{
103 return __builtin_ia32_rdrand32_step (__P);
104}
105#ifdef __DISABLE_RDRND__
106#undef __DISABLE_RDRND__
107#pragma GCC pop_options
108#endif /* __DISABLE_RDRND__ */
109
110#ifdef __x86_64__
111
112#ifndef __FSGSBASE__
113#pragma GCC push_options
114#pragma GCC target("fsgsbase")
115#define __DISABLE_FSGSBASE__
116#endif /* __FSGSBASE__ */
117extern __inline unsigned int
118__attribute__((__gnu_inline__, __always_inline__, __artificial__))
119_readfsbase_u32 (void)
120{
121 return __builtin_ia32_rdfsbase32 ();
122}
123
124extern __inline unsigned long long
125__attribute__((__gnu_inline__, __always_inline__, __artificial__))
126_readfsbase_u64 (void)
127{
128 return __builtin_ia32_rdfsbase64 ();
129}
130
131extern __inline unsigned int
132__attribute__((__gnu_inline__, __always_inline__, __artificial__))
133_readgsbase_u32 (void)
134{
135 return __builtin_ia32_rdgsbase32 ();
136}
137
138extern __inline unsigned long long
139__attribute__((__gnu_inline__, __always_inline__, __artificial__))
140_readgsbase_u64 (void)
141{
142 return __builtin_ia32_rdgsbase64 ();
143}
144
145extern __inline void
146__attribute__((__gnu_inline__, __always_inline__, __artificial__))
147_writefsbase_u32 (unsigned int __B)
148{
149 __builtin_ia32_wrfsbase32 (__B);
150}
151
152extern __inline void
153__attribute__((__gnu_inline__, __always_inline__, __artificial__))
154_writefsbase_u64 (unsigned long long __B)
155{
156 __builtin_ia32_wrfsbase64 (__B);
157}
158
159extern __inline void
160__attribute__((__gnu_inline__, __always_inline__, __artificial__))
161_writegsbase_u32 (unsigned int __B)
162{
163 __builtin_ia32_wrgsbase32 (__B);
164}
165
166extern __inline void
167__attribute__((__gnu_inline__, __always_inline__, __artificial__))
168_writegsbase_u64 (unsigned long long __B)
169{
170 __builtin_ia32_wrgsbase64 (__B);
171}
172#ifdef __DISABLE_FSGSBASE__
173#undef __DISABLE_FSGSBASE__
174#pragma GCC pop_options
175#endif /* __DISABLE_FSGSBASE__ */
176
177#ifndef __RDRND__
178#pragma GCC push_options
179#pragma GCC target("rdrnd")
180#define __DISABLE_RDRND__
181#endif /* __RDRND__ */
182extern __inline int
183__attribute__((__gnu_inline__, __always_inline__, __artificial__))
184_rdrand64_step (unsigned long long *__P)
185{
186 return __builtin_ia32_rdrand64_step (__P);
187}
188#ifdef __DISABLE_RDRND__
189#undef __DISABLE_RDRND__
190#pragma GCC pop_options
191#endif /* __DISABLE_RDRND__ */
192
193#endif /* __x86_64__ */
194
195#endif /* _IMMINTRIN_H_INCLUDED */
Note: See TracBrowser for help on using the repository browser.