@@ -29,144 +29,144 @@ use super::{bit, cache};
29
29
#[ unstable( feature = "stdsimd" , issue = "0" ) ]
30
30
macro_rules! is_x86_feature_detected {
31
31
( "aes" ) => {
32
- $crate:: arch:: detect:: check_for(
32
+ cfg! ( target_feature = "aes" ) || $crate:: arch:: detect:: check_for(
33
33
$crate:: arch:: detect:: Feature :: aes) } ;
34
34
( "pclmulqdq" ) => {
35
- $crate:: arch:: detect:: check_for(
35
+ cfg! ( target_feature = "pclmulqdq" ) || $crate:: arch:: detect:: check_for(
36
36
$crate:: arch:: detect:: Feature :: pclmulqdq) } ;
37
37
( "rdrand" ) => {
38
- $crate:: arch:: detect:: check_for(
38
+ cfg! ( target_feature = "rdrand" ) || $crate:: arch:: detect:: check_for(
39
39
$crate:: arch:: detect:: Feature :: rdrand) } ;
40
40
( "rdseed" ) => {
41
- $crate:: arch:: detect:: check_for(
41
+ cfg! ( target_feature = "rdseed" ) || $crate:: arch:: detect:: check_for(
42
42
$crate:: arch:: detect:: Feature :: rdseed) } ;
43
43
( "tsc" ) => {
44
- $crate:: arch:: detect:: check_for(
44
+ cfg! ( target_feature = "tsc" ) || $crate:: arch:: detect:: check_for(
45
45
$crate:: arch:: detect:: Feature :: tsc) } ;
46
46
( "mmx" ) => {
47
- $crate:: arch:: detect:: check_for(
47
+ cfg! ( target_feature = "mmx" ) || $crate:: arch:: detect:: check_for(
48
48
$crate:: arch:: detect:: Feature :: mmx) } ;
49
49
( "sse" ) => {
50
- $crate:: arch:: detect:: check_for(
50
+ cfg! ( target_feature = "sse" ) || $crate:: arch:: detect:: check_for(
51
51
$crate:: arch:: detect:: Feature :: sse) } ;
52
52
( "sse2" ) => {
53
- $crate:: arch:: detect:: check_for(
53
+ cfg! ( target_feature = "sse2" ) || $crate:: arch:: detect:: check_for(
54
54
$crate:: arch:: detect:: Feature :: sse2)
55
55
} ;
56
56
( "sse3" ) => {
57
- $crate:: arch:: detect:: check_for(
57
+ cfg! ( target_feature = "sse3" ) || $crate:: arch:: detect:: check_for(
58
58
$crate:: arch:: detect:: Feature :: sse3)
59
59
} ;
60
60
( "ssse3" ) => {
61
- $crate:: arch:: detect:: check_for(
61
+ cfg! ( target_feature = "ssse3" ) || $crate:: arch:: detect:: check_for(
62
62
$crate:: arch:: detect:: Feature :: ssse3)
63
63
} ;
64
64
( "sse4.1" ) => {
65
- $crate:: arch:: detect:: check_for(
65
+ cfg! ( target_feature = "sse4.1" ) || $crate:: arch:: detect:: check_for(
66
66
$crate:: arch:: detect:: Feature :: sse4_1)
67
67
} ;
68
68
( "sse4.2" ) => {
69
- $crate:: arch:: detect:: check_for(
69
+ cfg! ( target_feature = "sse4.2" ) || $crate:: arch:: detect:: check_for(
70
70
$crate:: arch:: detect:: Feature :: sse4_2)
71
71
} ;
72
72
( "sse4a" ) => {
73
- $crate:: arch:: detect:: check_for(
73
+ cfg! ( target_feature = "sse4a" ) || $crate:: arch:: detect:: check_for(
74
74
$crate:: arch:: detect:: Feature :: sse4a)
75
75
} ;
76
76
( "avx" ) => {
77
- $crate:: arch:: detect:: check_for(
77
+ cfg! ( target_feature = "avx" ) || $crate:: arch:: detect:: check_for(
78
78
$crate:: arch:: detect:: Feature :: avx)
79
79
} ;
80
80
( "avx2" ) => {
81
- $crate:: arch:: detect:: check_for(
81
+ cfg! ( target_feature = "avx2" ) || $crate:: arch:: detect:: check_for(
82
82
$crate:: arch:: detect:: Feature :: avx2)
83
83
} ;
84
84
( "avx512f" ) => {
85
- $crate:: arch:: detect:: check_for(
85
+ cfg! ( target_feature = "avx512f" ) || $crate:: arch:: detect:: check_for(
86
86
$crate:: arch:: detect:: Feature :: avx512f)
87
87
} ;
88
88
( "avx512cd" ) => {
89
- $crate:: arch:: detect:: check_for(
89
+ cfg! ( target_feature = "avx512cd" ) || $crate:: arch:: detect:: check_for(
90
90
$crate:: arch:: detect:: Feature :: avx512cd)
91
91
} ;
92
92
( "avx512er" ) => {
93
- $crate:: arch:: detect:: check_for(
93
+ cfg! ( target_feature = "avx512er" ) || $crate:: arch:: detect:: check_for(
94
94
$crate:: arch:: detect:: Feature :: avx512er)
95
95
} ;
96
96
( "avx512pf" ) => {
97
- $crate:: arch:: detect:: check_for(
97
+ cfg! ( target_feature = "avx512pf" ) || $crate:: arch:: detect:: check_for(
98
98
$crate:: arch:: detect:: Feature :: avx512pf)
99
99
} ;
100
100
( "avx512bw" ) => {
101
- $crate:: arch:: detect:: check_for(
101
+ cfg! ( target_feature = "avx512bw" ) || $crate:: arch:: detect:: check_for(
102
102
$crate:: arch:: detect:: Feature :: avx512bw)
103
103
} ;
104
104
( "avx512dq" ) => {
105
- $crate:: arch:: detect:: check_for(
105
+ cfg! ( target_feature = "avx512dq" ) || $crate:: arch:: detect:: check_for(
106
106
$crate:: arch:: detect:: Feature :: avx512dq)
107
107
} ;
108
108
( "avx512vl" ) => {
109
- $crate:: arch:: detect:: check_for(
109
+ cfg! ( target_Feature = "avx512vl" ) || $crate:: arch:: detect:: check_for(
110
110
$crate:: arch:: detect:: Feature :: avx512vl)
111
111
} ;
112
112
( "avx512ifma" ) => {
113
- $crate:: arch:: detect:: check_for(
113
+ cfg! ( target_feature = "avx512ifma" ) || $crate:: arch:: detect:: check_for(
114
114
$crate:: arch:: detect:: Feature :: avx512_ifma)
115
115
} ;
116
116
( "avx512vbmi" ) => {
117
- $crate:: arch:: detect:: check_for(
117
+ cfg! ( target_feature = "avx512vbmi" ) || $crate:: arch:: detect:: check_for(
118
118
$crate:: arch:: detect:: Feature :: avx512_vbmi)
119
119
} ;
120
120
( "avx512vpopcntdq" ) => {
121
- $crate:: arch:: detect:: check_for(
121
+ cfg! ( target_feature = "avx512vpopcntdq" ) || $crate:: arch:: detect:: check_for(
122
122
$crate:: arch:: detect:: Feature :: avx512_vpopcntdq)
123
123
} ;
124
124
( "fma" ) => {
125
- $crate:: arch:: detect:: check_for(
125
+ cfg! ( target_feature = "fma" ) || $crate:: arch:: detect:: check_for(
126
126
$crate:: arch:: detect:: Feature :: fma)
127
127
} ;
128
128
( "bmi1" ) => {
129
- $crate:: arch:: detect:: check_for(
129
+ cfg! ( target_feature = "bmi1" ) || $crate:: arch:: detect:: check_for(
130
130
$crate:: arch:: detect:: Feature :: bmi)
131
131
} ;
132
132
( "bmi2" ) => {
133
- $crate:: arch:: detect:: check_for(
133
+ cfg! ( target_feature = "bmi2" ) || $crate:: arch:: detect:: check_for(
134
134
$crate:: arch:: detect:: Feature :: bmi2)
135
135
} ;
136
136
( "abm" ) => {
137
- $crate:: arch:: detect:: check_for(
137
+ cfg! ( target_feature = "abm" ) || $crate:: arch:: detect:: check_for(
138
138
$crate:: arch:: detect:: Feature :: abm)
139
139
} ;
140
140
( "lzcnt" ) => {
141
- $crate:: arch:: detect:: check_for(
141
+ cfg! ( target_feature = "lzcnt" ) || $crate:: arch:: detect:: check_for(
142
142
$crate:: arch:: detect:: Feature :: abm)
143
143
} ;
144
144
( "tbm" ) => {
145
- $crate:: arch:: detect:: check_for(
145
+ cfg! ( target_feature = "tbm" ) || $crate:: arch:: detect:: check_for(
146
146
$crate:: arch:: detect:: Feature :: tbm)
147
147
} ;
148
148
( "popcnt" ) => {
149
- $crate:: arch:: detect:: check_for(
149
+ cfg! ( target_feature = "popcnt" ) || $crate:: arch:: detect:: check_for(
150
150
$crate:: arch:: detect:: Feature :: popcnt)
151
151
} ;
152
152
( "fxsr" ) => {
153
- $crate:: arch:: detect:: check_for(
153
+ cfg! ( target_feature = "fxsr" ) || $crate:: arch:: detect:: check_for(
154
154
$crate:: arch:: detect:: Feature :: fxsr)
155
155
} ;
156
156
( "xsave" ) => {
157
- $crate:: arch:: detect:: check_for(
157
+ cfg! ( target_feature = "xsave" ) || $crate:: arch:: detect:: check_for(
158
158
$crate:: arch:: detect:: Feature :: xsave)
159
159
} ;
160
160
( "xsaveopt" ) => {
161
- $crate:: arch:: detect:: check_for(
161
+ cfg! ( target_feature = "xsaveopt" ) || $crate:: arch:: detect:: check_for(
162
162
$crate:: arch:: detect:: Feature :: xsaveopt)
163
163
} ;
164
164
( "xsaves" ) => {
165
- $crate:: arch:: detect:: check_for(
165
+ cfg! ( target_feature = "xsaves" ) || $crate:: arch:: detect:: check_for(
166
166
$crate:: arch:: detect:: Feature :: xsaves)
167
167
} ;
168
168
( "xsavec" ) => {
169
- $crate:: arch:: detect:: check_for(
169
+ cfg! ( target_feature = "xsavec" ) || $crate:: arch:: detect:: check_for(
170
170
$crate:: arch:: detect:: Feature :: xsavec)
171
171
} ;
172
172
( $t: tt) => {
0 commit comments