tmp/tmpi_2pef6m/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Compound assignment <a id="simd.cassign">[[simd.cassign]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
friend constexpr basic_vec& operator+=(basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 5 |
+
friend constexpr basic_vec& operator-=(basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 6 |
+
friend constexpr basic_vec& operator*=(basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 7 |
+
friend constexpr basic_vec& operator/=(basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 8 |
+
friend constexpr basic_vec& operator%=(basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 9 |
+
friend constexpr basic_vec& operator&=(basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 10 |
+
friend constexpr basic_vec& operator|=(basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 11 |
+
friend constexpr basic_vec& operator^=(basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 12 |
+
friend constexpr basic_vec& operator<<=(basic_vec& lhs, const basic_vec& rhs) noexcept;
|
| 13 |
+
friend constexpr basic_vec& operator>>=(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 |
+
*Effects:* These operators apply the indicated operator to `lhs` and
|
| 22 |
+
`rhs` as an element-wise operation.
|
| 23 |
+
|
| 24 |
+
*Returns:* `lhs`.
|
| 25 |
+
|
| 26 |
+
``` cpp
|
| 27 |
+
friend constexpr basic_vec& operator<<=(basic_vec& lhs, simd-size-type n) noexcept;
|
| 28 |
+
friend constexpr basic_vec& operator>>=(basic_vec& lhs, simd-size-type n) noexcept;
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
Let *op* be the operator.
|
| 32 |
+
|
| 33 |
+
*Constraints:*
|
| 34 |
+
`requires (value_type a, `*`simd-size-type`*` b) { a `*`op`*` b; }` is
|
| 35 |
+
`true`.
|
| 36 |
+
|
| 37 |
+
*Effects:* Equivalent to:
|
| 38 |
+
`return operator `*`op`*` (lhs, basic_vec(n));`
|
| 39 |
+
|