Skip to content

Commit 74afdea

Browse files
committed
fix horizontal reduction naming inconsistency
1 parent 47ba7e7 commit 74afdea

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

text/0000-ppv.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,10 @@ Operations on vector types can be either:
174174
`false` for each of the vector lanes. Most vertical operations are binary operations (they take two input vectors). These operations are typically very fast on most architectures and they are the most widely used in practice.
175175

176176
* **horizontal**: that is, along a single vector - they are unary operations.
177-
For example, `a.sum()` adds the elements of a vector together while
178-
`a.hmax()` returns the largest element in a vector. These operations
179-
(typically) translate to a sequence of multiple SIMD instructions on most architectures and are therefore slower. In many cases, they are, however, necessary.
177+
For example, `a.sum()` adds the elements of a vector together while `a.hmax()`
178+
returns the largest element in a vector. These operations (typically)
179+
translate to a sequence of multiple SIMD instructions on most architectures
180+
and are therefore slower. In many cases, they are, however, necessary.
180181

181182
## Example: Average
182183

@@ -617,13 +618,13 @@ All signed and unsigned integer vectors implement the following methods:
617618
```rust
618619
impl {element_type}{lane_width}x{number_of_lanes} {
619620
/// Horizontal bitwise `and` of the vector elements.
620-
pub fn horizontal_and(self) -> element_type;
621+
pub fn and(self) -> element_type;
621622

622623
/// Horizontal bitwise `or` of the vector elements.
623-
pub fn horizontal_or(self) -> element_type;
624+
pub fn or(self) -> element_type;
624625

625626
/// Horizontal bitwise `xor` of the vector elements.
626-
pub fn horizontal_xor(self) -> element_type;
627+
pub fn xor(self) -> element_type;
627628
}
628629
```
629630

0 commit comments

Comments
 (0)