Skip to content

Commit

Permalink
fix horizontal reduction naming inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed Mar 22, 2018
1 parent 47ba7e7 commit 74afdea
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions text/0000-ppv.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ Operations on vector types can be either:
`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.

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

## Example: Average

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

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

/// Horizontal bitwise `xor` of the vector elements.
pub fn horizontal_xor(self) -> element_type;
pub fn xor(self) -> element_type;
}
```

Expand Down

0 comments on commit 74afdea

Please sign in to comment.