44//!
55//! Intrinsics that could live here:
66//!
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
2222
2323#[ cfg( test) ]
2424use stdsimd_test:: assert_instr;
@@ -99,7 +99,7 @@ pub unsafe fn __smultb(a: int16x2_t, b: int16x2_t) -> i32 {
9999/// Insert a SMULTB instruction
100100///
101101/// 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.
103103#[ inline]
104104#[ cfg_attr( test, assert_instr( smulbt) ) ]
105105pub 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 {
109109/// Insert a SMULTT instruction
110110///
111111/// 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.
113113#[ inline]
114114#[ cfg_attr( test, assert_instr( smultt) ) ]
115115pub unsafe fn __smultt ( a : int16x2_t , b : int16x2_t ) -> i32 {
@@ -171,7 +171,7 @@ pub unsafe fn __qdbl(a: i32) -> i32 {
171171/// Insert a SMLABB instruction
172172///
173173/// 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.
175175/// Sets the Q flag if overflow occurs on the addition.
176176#[ inline]
177177#[ cfg_attr( test, assert_instr( smlabb) ) ]
@@ -182,7 +182,7 @@ pub unsafe fn __smlabb(a: int16x2_t, b: int16x2_t, c: i32) -> i32 {
182182/// Insert a SMLABT instruction
183183///
184184/// 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.
186186/// Sets the Q flag if overflow occurs on the addition.
187187#[ inline]
188188#[ cfg_attr( test, assert_instr( smlabt) ) ]
@@ -193,7 +193,7 @@ pub unsafe fn __smlabt(a: int16x2_t, b: int16x2_t, c: i32) -> i32 {
193193/// Insert a SMLATB instruction
194194///
195195/// 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.
197197/// Sets the Q flag if overflow occurs on the addition.
198198#[ inline]
199199#[ cfg_attr( test, assert_instr( smlatb) ) ]
@@ -204,7 +204,7 @@ pub unsafe fn __smlatb(a: int16x2_t, b: int16x2_t, c: i32) -> i32 {
204204/// Insert a SMLATT instruction
205205///
206206/// 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.
208208/// Sets the Q flag if overflow occurs on the addition.
209209#[ inline]
210210#[ cfg_attr( test, assert_instr( smlatt) ) ]
@@ -214,8 +214,8 @@ pub unsafe fn __smlatt(a: int16x2_t, b: int16x2_t, c: i32) -> i32 {
214214
215215/// Insert a SMLAWB instruction
216216///
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.
219219/// Sets the Q flag if overflow occurs on the addition.
220220#[ inline]
221221#[ cfg_attr( test, assert_instr( smlawb) ) ]
@@ -225,8 +225,8 @@ pub unsafe fn __smlawb(a: i32, b: int16x2_t, c: i32) -> i32 {
225225
226226/// Insert a SMLAWT instruction
227227///
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.
230230/// Sets the Q flag if overflow occurs on the addition.
231231#[ inline]
232232#[ cfg_attr( test, assert_instr( smlawt) ) ]
0 commit comments