Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions proposals/simd/SIMD.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def S.shuffle(a, b, s):
if s[i] < S.lanes:
result[i] = a[s[i]]
else:
result[i] = b[s[i] - S.lanes]
result[i] = b[s[i] - S.lanes
return result
```

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

```python
def S.shl(a, x):
def S.shl(a, y):
# Number of bits to shift: 0 .. S.LaneBits - 1.
amount = y mod S.LaneBits
def shift(x):
Expand Down