tmp/tmpr1jjg6pw/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Binary operators <a id="simd.binary">[[simd.binary]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
friend constexpr basic_vec operator+(const basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 5 |
+
friend constexpr basic_vec operator-(const basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 6 |
+
friend constexpr basic_vec operator*(const basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 7 |
+
friend constexpr basic_vec operator/(const basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 8 |
+
friend constexpr basic_vec operator%(const basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 9 |
+
friend constexpr basic_vec operator&(const basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 10 |
+
friend constexpr basic_vec operator|(const basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 11 |
+
friend constexpr basic_vec operator^(const basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 12 |
+
friend constexpr basic_vec operator<<(const basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 13 |
+
friend constexpr basic_vec operator>>(const basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
Let *op* be the operator.
|
| 17 |
+
|
| 18 |
+
*Constraints:* `requires (value_type a, value_type b) { a `*`op`*` b; }`
|
| 19 |
+
is `true`.
|
| 20 |
+
|
| 21 |
+
*Returns:* A `basic_vec` object initialized with the results of applying
|
| 22 |
+
*op* to `lhs` and `rhs` as a binary element-wise operation.
|
| 23 |
+
|
| 24 |
+
``` cpp
|
| 25 |
+
friend constexpr basic_vec operator<<(const basic_vec& v, simd-size-type n) noexcept;
|
| 26 |
+
friend constexpr basic_vec operator>>(const basic_vec& v, simd-size-type n) noexcept;
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
Let *op* be the operator.
|
| 30 |
+
|
| 31 |
+
*Constraints:*
|
| 32 |
+
`requires (value_type a, `*`simd-size-type`*` b) { a `*`op`*` b; }` is
|
| 33 |
+
`true`.
|
| 34 |
+
|
| 35 |
+
*Returns:* A `basic_vec` object where the iᵗʰ element is initialized to
|
| 36 |
+
the result of applying *op* to `v[`i`]` and `n` for all i in the range
|
| 37 |
+
of \[`0`, `size()`).
|
| 38 |
+
|