4
4
//!
5
5
//! Intrinsics that could live here:
6
6
//!
7
- //! - [x ] __smulbb
8
- //! - [x ] __smulbt
9
- //! - [x ] __smultb
10
- //! - [x ] __smultt
11
- //! - [x ] __smulwb
12
- //! - [x ] __smulwt
13
- //! - [x ] __qadd
14
- //! - [x ] __qsub
15
- //! - [x ] __qdbl
16
- //! - [x ] __smlabb
17
- //! - [x ] __smlabt
18
- //! - [x ] __smlatb
19
- //! - [x ] __smlatt
20
- //! - [x ] __smlawb
21
- //! - [x ] __smlawt
7
+ //! - \[x\ ] __smulbb
8
+ //! - \[x\ ] __smulbt
9
+ //! - \[x\ ] __smultb
10
+ //! - \[x\ ] __smultt
11
+ //! - \[x\ ] __smulwb
12
+ //! - \[x\ ] __smulwt
13
+ //! - \[x\ ] __qadd
14
+ //! - \[x\ ] __qsub
15
+ //! - \[x\ ] __qdbl
16
+ //! - \[x\ ] __smlabb
17
+ //! - \[x\ ] __smlabt
18
+ //! - \[x\ ] __smlatb
19
+ //! - \[x\ ] __smlatt
20
+ //! - \[x\ ] __smlawb
21
+ //! - \[x\ ] __smlawt
22
22
23
23
#[ cfg( test) ]
24
24
use stdsimd_test:: assert_instr;
@@ -99,7 +99,7 @@ pub unsafe fn __smultb(a: int16x2_t, b: int16x2_t) -> i32 {
99
99
/// Insert a SMULTB instruction
100
100
///
101
101
/// Returns the equivalent of a\[1\] * b\[0\]
102
- /// where [0 ] is the lower 16 bits and [1 ] is the upper 16 bits.
102
+ /// where \[0\ ] is the lower 16 bits and \[1\ ] is the upper 16 bits.
103
103
#[ inline]
104
104
#[ cfg_attr( test, assert_instr( smulbt) ) ]
105
105
pub unsafe fn __smulbt ( a : int16x2_t , b : int16x2_t ) -> i32 {
@@ -109,7 +109,7 @@ pub unsafe fn __smulbt(a: int16x2_t, b: int16x2_t) -> i32 {
109
109
/// Insert a SMULTT instruction
110
110
///
111
111
/// Returns the equivalent of a\[1\] * b\[1\]
112
- /// where [0 ] is the lower 16 bits and [1 ] is the upper 16 bits.
112
+ /// where \[0\ ] is the lower 16 bits and \[1\ ] is the upper 16 bits.
113
113
#[ inline]
114
114
#[ cfg_attr( test, assert_instr( smultt) ) ]
115
115
pub unsafe fn __smultt ( a : int16x2_t , b : int16x2_t ) -> i32 {
@@ -171,7 +171,7 @@ pub unsafe fn __qdbl(a: i32) -> i32 {
171
171
/// Insert a SMLABB instruction
172
172
///
173
173
/// Returns the equivalent of a\[0\] * b\[0\] + c
174
- /// where [0 ] is the lower 16 bits and [1 ] is the upper 16 bits.
174
+ /// where \[0\ ] is the lower 16 bits and \[1\ ] is the upper 16 bits.
175
175
/// Sets the Q flag if overflow occurs on the addition.
176
176
#[ inline]
177
177
#[ cfg_attr( test, assert_instr( smlabb) ) ]
@@ -182,7 +182,7 @@ pub unsafe fn __smlabb(a: int16x2_t, b: int16x2_t, c: i32) -> i32 {
182
182
/// Insert a SMLABT instruction
183
183
///
184
184
/// Returns the equivalent of a\[0\] * b\[1\] + c
185
- /// where [0 ] is the lower 16 bits and [1 ] is the upper 16 bits.
185
+ /// where \[0\ ] is the lower 16 bits and \[1\ ] is the upper 16 bits.
186
186
/// Sets the Q flag if overflow occurs on the addition.
187
187
#[ inline]
188
188
#[ cfg_attr( test, assert_instr( smlabt) ) ]
@@ -193,7 +193,7 @@ pub unsafe fn __smlabt(a: int16x2_t, b: int16x2_t, c: i32) -> i32 {
193
193
/// Insert a SMLATB instruction
194
194
///
195
195
/// Returns the equivalent of a\[1\] * b\[0\] + c
196
- /// where [0 ] is the lower 16 bits and [1 ] is the upper 16 bits.
196
+ /// where \[0\ ] is the lower 16 bits and \[1\ ] is the upper 16 bits.
197
197
/// Sets the Q flag if overflow occurs on the addition.
198
198
#[ inline]
199
199
#[ cfg_attr( test, assert_instr( smlatb) ) ]
@@ -204,7 +204,7 @@ pub unsafe fn __smlatb(a: int16x2_t, b: int16x2_t, c: i32) -> i32 {
204
204
/// Insert a SMLATT instruction
205
205
///
206
206
/// Returns the equivalent of a\[1\] * b\[1\] + c
207
- /// where [0 ] is the lower 16 bits and [1 ] is the upper 16 bits.
207
+ /// where \[0\ ] is the lower 16 bits and \[1\ ] is the upper 16 bits.
208
208
/// Sets the Q flag if overflow occurs on the addition.
209
209
#[ inline]
210
210
#[ cfg_attr( test, assert_instr( smlatt) ) ]
@@ -214,8 +214,8 @@ pub unsafe fn __smlatt(a: int16x2_t, b: int16x2_t, c: i32) -> i32 {
214
214
215
215
/// Insert a SMLAWB instruction
216
216
///
217
- /// Returns the equivalent of (a * b[0 ] + (c << 16)) >> 16
218
- /// where [0 ] is the lower 16 bits and [1 ] is the upper 16 bits.
217
+ /// Returns the equivalent of (a * b\[0\ ] + (c << 16)) >> 16
218
+ /// where \[0\ ] is the lower 16 bits and \[1\ ] is the upper 16 bits.
219
219
/// Sets the Q flag if overflow occurs on the addition.
220
220
#[ inline]
221
221
#[ cfg_attr( test, assert_instr( smlawb) ) ]
@@ -225,8 +225,8 @@ pub unsafe fn __smlawb(a: i32, b: int16x2_t, c: i32) -> i32 {
225
225
226
226
/// Insert a SMLAWT instruction
227
227
///
228
- /// Returns the equivalent of (a * b[1 ] + (c << 16)) >> 16
229
- /// where [0 ] is the lower 16 bits and [1 ] is the upper 16 bits.
228
+ /// Returns the equivalent of (a * b\[1\ ] + (c << 16)) >> 16
229
+ /// where \[0\ ] is the lower 16 bits and \[1\ ] is the upper 16 bits.
230
230
/// Sets the Q flag if overflow occurs on the addition.
231
231
#[ inline]
232
232
#[ cfg_attr( test, assert_instr( smlawt) ) ]
0 commit comments