WebAssembly / flexible-vectors

Vector operations for WebAssembly
https://webassembly.github.io/flexible-vectors/
Other
48 stars 6 forks source link

Lane-wise shifts #18

Closed penzn closed 3 years ago

penzn commented 3 years ago

Introduce equivalents of lane-wise (or 'logical") shifts, present in popular SIMD instruction sets.

penzn commented 3 years ago

By the way, if anybody else wants to join in reviewing PRs to this proposal, it would be delightful!

The goal at the moment is to provide operations equivalent to operations in the simd proposal, which exception of shuffle (where there would not be an exact match). This PR provided one of the shuffle-themed operations, and there will be more later.

CC @sampsyo, @zeux, and @ngzhian