Skip to content

Commit

Permalink
Move PairwiseAdd/Sub128 to blockwise
Browse files Browse the repository at this point in the history
  • Loading branch information
wbb-ccl committed Feb 6, 2025
1 parent 74d5897 commit f2b6329
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions g3doc/quick_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,16 +560,6 @@ from left to right, of the arguments passed to `Create{2-4}`.
Return the results of a and b interleaved, such that `r[i] = a[i+1] - a[i]` for
even lanes and `r[i] = b[i] - b[i-1]` for odd lanes.

* <code>V **PairwiseAdd128**(D d, V a, V b)</code>: Add consecutive pairs of
* elements in a and b, and pack results in 128 bit blocks, such that
`r[i] = a[i] + a[i+1]` for 64 bits, followed by `b[i] + b[i+1]` for next 64
bits and repeated.

* <code>V **PairwiseSub128**(D d, V a, V b)</code>: Subtract consecutive pairs
of elements in a and b, and pack results in 128 bit blocks, such that
`r[i] = a[i] + a[i+1]` for 64 bits, followed by `b[i] + b[i+1]` for next 64
bits and repeated.

* `V`: `{i,u}{8,16,32},f{16,32}`, `VW`: `Vec<RepartitionToWide<DFromV<V>>>` \
<code>VW **SumsOf2**(V v)</code>
returns the sums of 2 consecutive lanes, promoting each sum into a lane of
Expand Down Expand Up @@ -2222,6 +2212,16 @@ All other ops in this section are only available if `HWY_TARGET != HWY_SCALAR`:
}
```
* <code>V **PairwiseAdd128**(D d, V a, V b)</code>: Add consecutive pairs of
elements in a and b, and pack results in 128 bit blocks, such that
`r[i] = a[i] + a[i+1]` for 64 bits, followed by `b[i] + b[i+1]` for next 64
bits and repeated.
* <code>V **PairwiseSub128**(D d, V a, V b)</code>: Subtract consecutive pairs
of elements in a and b, and pack results in 128 bit blocks, such that
`r[i] = a[i] + a[i+1]` for 64 bits, followed by `b[i] + b[i+1]` for next 64
bits and repeated.
#### Interleave
Ops in this section are only available if `HWY_TARGET != HWY_SCALAR`:
Expand Down

0 comments on commit f2b6329

Please sign in to comment.