Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit 4a082db

Browse files
smasher164tlively
authored andcommitted
Minor Documentation Fixes (#90)
Issue in Shuffle s/result[i] = b[s[i] - S.lanes]/result[i] = b[s[i] - S.lanes Issue in Bit Shifts s/def S.shl(a, x):/def S.shl(a, y):
1 parent f44e3a6 commit 4a082db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/simd/SIMD.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def S.shuffle(a, b, s):
300300
if s[i] < S.lanes:
301301
result[i] = a[s[i]]
302302
else:
303-
result[i] = b[s[i] - S.lanes]
303+
result[i] = b[s[i] - S.lanes
304304
return result
305305
```
306306

@@ -469,7 +469,7 @@ Shift the bits in each lane to the left by the same amount. Only the low bits
469469
of the shift amount are used:
470470

471471
```python
472-
def S.shl(a, x):
472+
def S.shl(a, y):
473473
# Number of bits to shift: 0 .. S.LaneBits - 1.
474474
amount = y mod S.LaneBits
475475
def shift(x):

0 commit comments

Comments
 (0)