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
10 changes: 5 additions & 5 deletions proposals/simd/SIMD.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ def S.sub_saturate_u(a, b):
* `i32x4.shl(a: v128, y: i32) -> v128`
* `i64x2.shl(a: v128, y: i32) -> v128`

Shift the bits in each lane to the left by the same amount. Only the low bits
of the shift amount are used:
Shift the bits in each lane to the left by the same amount. The shift count is
taken modulo lane width:

```python
def S.shl(a, y):
Expand All @@ -487,9 +487,9 @@ def S.shl(a, y):
* `i64x2.shr_s(a: v128, y: i32) -> v128`
* `i64x2.shr_u(a: v128, y: i32) -> v128`

Shift the bits in each lane to the right by the same amount. This is an
arithmetic right shift for the `_s` variants and a logical right shift for the
`_u` variants.
Shift the bits in each lane to the right by the same amount. The shift count is
taken modulo lane width. This is an arithmetic right shift for the `_s`
variants and a logical right shift for the `_u` variants.

```python
def S.shr_s(a, y):
Expand Down