@@ -10,135 +10,135 @@ use v128::{f32x4, i16x8, i32x4, i64x2, i8x16, u16x8, u32x4, u64x2, u8x16};
10
10
11
11
/// Vector add.
12
12
#[ inline( always) ]
13
- #[ target_feature = "+ neon" ]
13
+ #[ target_feature( enable = "neon" ) ]
14
14
#[ cfg_attr( test, assert_instr( add) ) ]
15
15
pub unsafe fn vadd_s8 ( a : i8x8 , b : i8x8 ) -> i8x8 {
16
16
simd_add ( a, b)
17
17
}
18
18
19
19
/// Vector add.
20
20
#[ inline( always) ]
21
- #[ target_feature = "+ neon" ]
21
+ #[ target_feature( enable = "neon" ) ]
22
22
#[ cfg_attr( test, assert_instr( add) ) ]
23
23
pub unsafe fn vaddq_s8 ( a : i8x16 , b : i8x16 ) -> i8x16 {
24
24
simd_add ( a, b)
25
25
}
26
26
27
27
/// Vector add.
28
28
#[ inline( always) ]
29
- #[ target_feature = "+ neon" ]
29
+ #[ target_feature( enable = "neon" ) ]
30
30
#[ cfg_attr( test, assert_instr( add) ) ]
31
31
pub unsafe fn vadd_s16 ( a : i16x4 , b : i16x4 ) -> i16x4 {
32
32
simd_add ( a, b)
33
33
}
34
34
35
35
/// Vector add.
36
36
#[ inline( always) ]
37
- #[ target_feature = "+ neon" ]
37
+ #[ target_feature( enable = "neon" ) ]
38
38
#[ cfg_attr( test, assert_instr( add) ) ]
39
39
pub unsafe fn vaddq_s16 ( a : i16x8 , b : i16x8 ) -> i16x8 {
40
40
simd_add ( a, b)
41
41
}
42
42
43
43
/// Vector add.
44
44
#[ inline( always) ]
45
- #[ target_feature = "+ neon" ]
45
+ #[ target_feature( enable = "neon" ) ]
46
46
#[ cfg_attr( test, assert_instr( add) ) ]
47
47
pub unsafe fn vadd_s32 ( a : i32x2 , b : i32x2 ) -> i32x2 {
48
48
simd_add ( a, b)
49
49
}
50
50
51
51
/// Vector add.
52
52
#[ inline( always) ]
53
- #[ target_feature = "+ neon" ]
53
+ #[ target_feature( enable = "neon" ) ]
54
54
#[ cfg_attr( test, assert_instr( add) ) ]
55
55
pub unsafe fn vaddq_s32 ( a : i32x4 , b : i32x4 ) -> i32x4 {
56
56
simd_add ( a, b)
57
57
}
58
58
59
59
/// Vector add.
60
60
#[ inline( always) ]
61
- #[ target_feature = "+ neon" ]
61
+ #[ target_feature( enable = "neon" ) ]
62
62
#[ cfg_attr( test, assert_instr( add) ) ]
63
63
pub unsafe fn vaddq_s64 ( a : i64x2 , b : i64x2 ) -> i64x2 {
64
64
simd_add ( a, b)
65
65
}
66
66
67
67
/// Vector add.
68
68
#[ inline( always) ]
69
- #[ target_feature = "+ neon" ]
69
+ #[ target_feature( enable = "neon" ) ]
70
70
#[ cfg_attr( test, assert_instr( add) ) ]
71
71
pub unsafe fn vadd_u8 ( a : u8x8 , b : u8x8 ) -> u8x8 {
72
72
simd_add ( a, b)
73
73
}
74
74
75
75
/// Vector add.
76
76
#[ inline( always) ]
77
- #[ target_feature = "+ neon" ]
77
+ #[ target_feature( enable = "neon" ) ]
78
78
#[ cfg_attr( test, assert_instr( add) ) ]
79
79
pub unsafe fn vaddq_u8 ( a : u8x16 , b : u8x16 ) -> u8x16 {
80
80
simd_add ( a, b)
81
81
}
82
82
83
83
/// Vector add.
84
84
#[ inline( always) ]
85
- #[ target_feature = "+ neon" ]
85
+ #[ target_feature( enable = "neon" ) ]
86
86
#[ cfg_attr( test, assert_instr( add) ) ]
87
87
pub unsafe fn vadd_u16 ( a : u16x4 , b : u16x4 ) -> u16x4 {
88
88
simd_add ( a, b)
89
89
}
90
90
91
91
/// Vector add.
92
92
#[ inline( always) ]
93
- #[ target_feature = "+ neon" ]
93
+ #[ target_feature( enable = "neon" ) ]
94
94
#[ cfg_attr( test, assert_instr( add) ) ]
95
95
pub unsafe fn vaddq_u16 ( a : u16x8 , b : u16x8 ) -> u16x8 {
96
96
simd_add ( a, b)
97
97
}
98
98
99
99
/// Vector add.
100
100
#[ inline( always) ]
101
- #[ target_feature = "+ neon" ]
101
+ #[ target_feature( enable = "neon" ) ]
102
102
#[ cfg_attr( test, assert_instr( add) ) ]
103
103
pub unsafe fn vadd_u32 ( a : u32x2 , b : u32x2 ) -> u32x2 {
104
104
simd_add ( a, b)
105
105
}
106
106
107
107
/// Vector add.
108
108
#[ inline( always) ]
109
- #[ target_feature = "+ neon" ]
109
+ #[ target_feature( enable = "neon" ) ]
110
110
#[ cfg_attr( test, assert_instr( add) ) ]
111
111
pub unsafe fn vaddq_u32 ( a : u32x4 , b : u32x4 ) -> u32x4 {
112
112
simd_add ( a, b)
113
113
}
114
114
115
115
/// Vector add.
116
116
#[ inline( always) ]
117
- #[ target_feature = "+ neon" ]
117
+ #[ target_feature( enable = "neon" ) ]
118
118
#[ cfg_attr( test, assert_instr( add) ) ]
119
119
pub unsafe fn vaddq_u64 ( a : u64x2 , b : u64x2 ) -> u64x2 {
120
120
simd_add ( a, b)
121
121
}
122
122
123
123
/// Vector add.
124
124
#[ inline( always) ]
125
- #[ target_feature = "+ neon" ]
125
+ #[ target_feature( enable = "neon" ) ]
126
126
#[ cfg_attr( test, assert_instr( fadd) ) ]
127
127
pub unsafe fn vadd_f32 ( a : f32x2 , b : f32x2 ) -> f32x2 {
128
128
simd_add ( a, b)
129
129
}
130
130
131
131
/// Vector add.
132
132
#[ inline( always) ]
133
- #[ target_feature = "+ neon" ]
133
+ #[ target_feature( enable = "neon" ) ]
134
134
#[ cfg_attr( test, assert_instr( fadd) ) ]
135
135
pub unsafe fn vaddq_f32 ( a : f32x4 , b : f32x4 ) -> f32x4 {
136
136
simd_add ( a, b)
137
137
}
138
138
139
139
/// Vector long add.
140
140
#[ inline( always) ]
141
- #[ target_feature = "+ neon" ]
141
+ #[ target_feature( enable = "neon" ) ]
142
142
#[ cfg_attr( test, assert_instr( saddl) ) ]
143
143
pub unsafe fn vaddl_s8 ( a : i8x8 , b : i8x8 ) -> i16x8 {
144
144
let a = a. as_i16x8 ( ) ;
@@ -148,7 +148,7 @@ pub unsafe fn vaddl_s8(a: i8x8, b: i8x8) -> i16x8 {
148
148
149
149
/// Vector long add.
150
150
#[ inline( always) ]
151
- #[ target_feature = "+ neon" ]
151
+ #[ target_feature( enable = "neon" ) ]
152
152
#[ cfg_attr( test, assert_instr( saddl) ) ]
153
153
pub unsafe fn vaddl_s16 ( a : i16x4 , b : i16x4 ) -> i32x4 {
154
154
let a = a. as_i32x4 ( ) ;
@@ -158,7 +158,7 @@ pub unsafe fn vaddl_s16(a: i16x4, b: i16x4) -> i32x4 {
158
158
159
159
/// Vector long add.
160
160
#[ inline( always) ]
161
- #[ target_feature = "+ neon" ]
161
+ #[ target_feature( enable = "neon" ) ]
162
162
#[ cfg_attr( test, assert_instr( saddl) ) ]
163
163
pub unsafe fn vaddl_s32 ( a : i32x2 , b : i32x2 ) -> i64x2 {
164
164
let a = a. as_i64x2 ( ) ;
@@ -168,7 +168,7 @@ pub unsafe fn vaddl_s32(a: i32x2, b: i32x2) -> i64x2 {
168
168
169
169
/// Vector long add.
170
170
#[ inline( always) ]
171
- #[ target_feature = "+ neon" ]
171
+ #[ target_feature( enable = "neon" ) ]
172
172
#[ cfg_attr( test, assert_instr( uaddl) ) ]
173
173
pub unsafe fn vaddl_u8 ( a : u8x8 , b : u8x8 ) -> u16x8 {
174
174
let a = a. as_u16x8 ( ) ;
@@ -178,7 +178,7 @@ pub unsafe fn vaddl_u8(a: u8x8, b: u8x8) -> u16x8 {
178
178
179
179
/// Vector long add.
180
180
#[ inline( always) ]
181
- #[ target_feature = "+ neon" ]
181
+ #[ target_feature( enable = "neon" ) ]
182
182
#[ cfg_attr( test, assert_instr( uaddl) ) ]
183
183
pub unsafe fn vaddl_u16 ( a : u16x4 , b : u16x4 ) -> u32x4 {
184
184
let a = a. as_u32x4 ( ) ;
@@ -188,7 +188,7 @@ pub unsafe fn vaddl_u16(a: u16x4, b: u16x4) -> u32x4 {
188
188
189
189
/// Vector long add.
190
190
#[ inline( always) ]
191
- #[ target_feature = "+ neon" ]
191
+ #[ target_feature( enable = "neon" ) ]
192
192
#[ cfg_attr( test, assert_instr( uaddl) ) ]
193
193
pub unsafe fn vaddl_u32 ( a : u32x2 , b : u32x2 ) -> u64x2 {
194
194
let a = a. as_u64x2 ( ) ;
@@ -206,7 +206,7 @@ extern "C" {
206
206
207
207
/// Reciprocal square-root estimate.
208
208
#[ inline( always) ]
209
- #[ target_feature = "+ neon" ]
209
+ #[ target_feature( enable = "neon" ) ]
210
210
#[ cfg_attr( test, assert_instr( frsqrte) ) ]
211
211
pub unsafe fn vrsqrte_f32 ( a : f32x2 ) -> f32x2 {
212
212
frsqrte_v2f32 ( a)
0 commit comments