Skip to content

Commit 556d85e

Browse files
committed
doc
1 parent e14fd37 commit 556d85e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

portable/src/implementation/portable/algorithm_new.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ where
214214
v15: u8,
215215
) -> Self;
216216

217-
fn prev1(self, prev: Self) -> Self; // FIXME: generic?
217+
// const generics would be more awkward and verbose with the current
218+
// portable SIMD swizzle implementation and compiler limitations.
219+
fn prev1(self, prev: Self) -> Self;
218220
fn prev2(self, prev: Self) -> Self;
219221
fn prev3(self, prev: Self) -> Self;
220222

@@ -323,7 +325,6 @@ impl SimdU8Value<16> for u8x16 {
323325
)
324326
}
325327

326-
// ugly but prev<N> requires const generics
327328
#[inline]
328329
fn prev2(self, prev: Self) -> Self {
329330
simd_swizzle!(
@@ -333,7 +334,6 @@ impl SimdU8Value<16> for u8x16 {
333334
)
334335
}
335336

336-
// ugly but prev<N> requires const generics
337337
#[inline]
338338
fn prev3(self, prev: Self) -> Self {
339339
simd_swizzle!(

0 commit comments

Comments
 (0)