Skip to content

Commit bd6254f

Browse files
paolotetialexcrichton
authored andcommitted
ARM DSP: fix intra_doc_link_resolution_failure (#534)
Escape '[' and ']' used for arrays and not as Markdown syntax
1 parent d679b27 commit bd6254f

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

coresimd/arm/dsp.rs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ pub unsafe fn qsub(a: i32, b: i32) -> i32 {
8080
///
8181
/// Returns the 8-bit signed equivalent of
8282
///
83-
/// res[0] = a[0] + b[0]
84-
/// res[1] = a[1] + b[1]
85-
/// res[2] = a[2] + b[2]
86-
/// res[3] = a[3] + b[3]
83+
/// res\[0\] = a\[0\] + b\[0\]
84+
/// res\[1\] = a\[1\] + b\[1\]
85+
/// res\[2\] = a\[2\] + b\[2\]
86+
/// res\[3\] = a\[3\] + b\[3\]
8787
#[inline]
8888
#[cfg_attr(test, assert_instr(qadd8))]
8989
pub unsafe fn qadd8(a: int8x4_t, b: int8x4_t) -> int8x4_t {
@@ -94,10 +94,10 @@ pub unsafe fn qadd8(a: int8x4_t, b: int8x4_t) -> int8x4_t {
9494
///
9595
/// Returns the 8-bit signed equivalent of
9696
///
97-
/// res[0] = a[0] - b[0]
98-
/// res[1] = a[1] - b[1]
99-
/// res[2] = a[2] - b[2]
100-
/// res[3] = a[3] - b[3]
97+
/// res\[0\] = a\[0\] - b\[0\]
98+
/// res\[1\] = a\[1\] - b\[1\]
99+
/// res\[2\] = a\[2\] - b\[2\]
100+
/// res\[3\] = a\[3\] - b\[3\]
101101
#[inline]
102102
#[cfg_attr(test, assert_instr(qsub8))]
103103
pub unsafe fn qsub8(a: int8x4_t, b: int8x4_t) -> int8x4_t {
@@ -108,8 +108,8 @@ pub unsafe fn qsub8(a: int8x4_t, b: int8x4_t) -> int8x4_t {
108108
///
109109
/// Returns the 16-bit signed equivalent of
110110
///
111-
/// res[0] = a[0] - b[0]
112-
/// res[1] = a[1] - b[1]
111+
/// res\[0\] = a\[0\] - b\[0\]
112+
/// res\[1\] = a\[1\] - b\[1\]
113113
#[inline]
114114
#[cfg_attr(test, assert_instr(qsub16))]
115115
pub unsafe fn qsub16(a: int16x2_t, b: int16x2_t) -> int16x2_t {
@@ -120,8 +120,8 @@ pub unsafe fn qsub16(a: int16x2_t, b: int16x2_t) -> int16x2_t {
120120
///
121121
/// Returns the 16-bit signed equivalent of
122122
///
123-
/// res[0] = a[0] + b[0]
124-
/// res[1] = a[1] + b[1]
123+
/// res\[0\] = a\[0\] + b\[0\]
124+
/// res\[1\] = a\[1\] + b\[1\]
125125
#[inline]
126126
#[cfg_attr(test, assert_instr(qadd16))]
127127
pub unsafe fn qadd16(a: int16x2_t, b: int16x2_t) -> int16x2_t {
@@ -130,8 +130,8 @@ pub unsafe fn qadd16(a: int16x2_t, b: int16x2_t) -> int16x2_t {
130130

131131
/// Returns the 16-bit signed saturated equivalent of
132132
///
133-
/// res[0] = a[0] - b[1]
134-
/// res[1] = a[1] + b[0]
133+
/// res\[0\] = a\[0\] - b\[1\]
134+
/// res\[1\] = a\[1\] + b\[0\]
135135
#[inline]
136136
#[cfg_attr(test, assert_instr(qasx))]
137137
pub unsafe fn qasx(a: int16x2_t, b: int16x2_t) -> int16x2_t {
@@ -140,8 +140,8 @@ pub unsafe fn qasx(a: int16x2_t, b: int16x2_t) -> int16x2_t {
140140

141141
/// Returns the 16-bit signed saturated equivalent of
142142
///
143-
/// res[0] = a[0] + b[1]
144-
/// res[1] = a[1] - b[0]
143+
/// res\[0\] = a\[0\] + b\[1\]
144+
/// res\[1\] = a\[1\] - b\[0\]
145145
#[inline]
146146
#[cfg_attr(test, assert_instr(qsax))]
147147
pub unsafe fn qsax(a: int16x2_t, b: int16x2_t) -> int16x2_t {
@@ -150,8 +150,8 @@ pub unsafe fn qsax(a: int16x2_t, b: int16x2_t) -> int16x2_t {
150150

151151
/// Returns the 16-bit signed saturated equivalent of
152152
///
153-
/// res[0] = a[0] + b[1]
154-
/// res[1] = a[1] + b[0]
153+
/// res\[0\] = a\[0\] + b\[1\]
154+
/// res\[1\] = a\[1\] + b\[0\]
155155
///
156156
/// and the GE bits of the APSR are set.
157157
#[inline]
@@ -162,10 +162,10 @@ pub unsafe fn sadd16(a: int16x2_t, b: int16x2_t) -> int16x2_t {
162162

163163
/// Returns the 8-bit signed saturated equivalent of
164164
///
165-
/// res[0] = a[0] + b[1]
166-
/// res[1] = a[1] + b[0]
167-
/// res[2] = a[2] + b[2]
168-
/// res[3] = a[3] + b[3]
165+
/// res\[0\] = a\[0\] + b\[1\]
166+
/// res\[1\] = a\[1\] + b\[0\]
167+
/// res\[2\] = a\[2\] + b\[2\]
168+
/// res\[3\] = a\[3\] + b\[3\]
169169
///
170170
/// and the GE bits of the APSR are set.
171171
#[inline]
@@ -176,8 +176,8 @@ pub unsafe fn sadd8(a: int8x4_t, b: int8x4_t) -> int8x4_t {
176176

177177
/// Returns the 16-bit signed equivalent of
178178
///
179-
/// res[0] = a[0] - b[1]
180-
/// res[1] = a[1] + b[0]
179+
/// res\[0\] = a\[0\] - b\[1\]
180+
/// res\[1\] = a\[1\] + b\[0\]
181181
///
182182
/// and the GE bits of the APSR are set.
183183
#[inline]
@@ -188,10 +188,10 @@ pub unsafe fn sasx(a: int16x2_t, b: int16x2_t) -> int16x2_t {
188188

189189
/// Returns the equivalent of
190190
///
191-
/// res[0] = GE[0] ? a[0] : b[0]
192-
/// res[1] = GE[1] ? a[1] : b[1]
193-
/// res[2] = GE[2] ? a[2] : b[2]
194-
/// res[3] = GE[3] ? a[3] : b[3]
191+
/// res\[0\] = GE\[0\] ? a\[0\] : b\[0\]
192+
/// res\[1\] = GE\[1\] ? a\[1\] : b\[1\]
193+
/// res\[2\] = GE\[2\] ? a\[2\] : b\[2\]
194+
/// res\[3\] = GE\[3\] ? a\[3\] : b\[3\]
195195
///
196196
/// where GE are bits of APSR
197197
#[inline]

0 commit comments

Comments
 (0)