tmp/tmpruwyiqj_/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Conversions <a id="simd.mask.conv">[[simd.mask.conv]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
template<class U, class A>
|
| 5 |
+
constexpr explicit(sizeof(U) != Bytes) operator basic_vec<U, A>() const noexcept;
|
| 6 |
+
```
|
| 7 |
+
|
| 8 |
+
*Constraints:* *`simd-size-v`*`<U, A> == `*`simd-size-v`*`<T, Abi>`.
|
| 9 |
+
|
| 10 |
+
*Returns:* A data-parallel object where the iᵗʰ element is initialized
|
| 11 |
+
to `static_cast<U>(operator[](`i`))`.
|
| 12 |
+
|
| 13 |
+
``` cpp
|
| 14 |
+
constexpr bitset<size()> to_bitset() const noexcept;
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
*Returns:* A `bitset<size()>` object where the iᵗʰ element is
|
| 18 |
+
initialized to `operator[](`i`)` for all i in the range \[`0`,
|
| 19 |
+
`size()`).
|
| 20 |
+
|
| 21 |
+
``` cpp
|
| 22 |
+
constexpr unsigned long long to_ullong() const;
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
Let N be the width of `unsigned long long`.
|
| 26 |
+
|
| 27 |
+
*Preconditions:*
|
| 28 |
+
|
| 29 |
+
- `size() <= `N is `true`, or
|
| 30 |
+
- for all i in the range \[N, `size()`), `operator[](`i`)` returns
|
| 31 |
+
`false`.
|
| 32 |
+
|
| 33 |
+
*Returns:* The integral value corresponding to the bits in `*this`.
|
| 34 |
+
|
| 35 |
+
*Throws:* Nothing.
|
| 36 |
+
|