Skip to content

Commit 931ce3f

Browse files
committed
Introduce [parallel.simd.binary]
1 parent f937271 commit 931ce3f

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

data_parallel_types.html

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,6 +1632,70 @@ <h1><ins><code>simd</code> unary operators</ins></h1>
16321632
</cxx-throws>
16331633
</cxx-function>
16341634
</cxx-section>
1635+
1636+
<cxx-section id="parallel.simd.nonmembers">
1637+
<h1><ins><code>simd</code> non-member operations</ins></h1>
1638+
1639+
<cxx-section id="parallel.simd.binary">
1640+
<cxx-function>
1641+
<cxx-signature><ins>
1642+
friend simd operator+(const simd& lhs, const simd& rhs);
1643+
friend simd operator-(const simd& lhs, const simd& rhs);
1644+
friend simd operator*(const simd& lhs, const simd& rhs);
1645+
friend simd operator/(const simd& lhs, const simd& rhs);
1646+
friend simd operator%(const simd& lhs, const simd& rhs);
1647+
friend simd operator&(const simd& lhs, const simd& rhs);
1648+
friend simd operator|(const simd& lhs, const simd& rhs);
1649+
friend simd operator^(const simd& lhs, const simd& rhs);
1650+
friend simd operator&lt;&lt;(const simd& lhs, const simd& rhs);
1651+
friend simd operator&gt;&gt;(const simd& lhs, const simd& rhs);
1652+
</ins></cxx-signature>
1653+
1654+
<cxx-returns>
1655+
<ins>
1656+
A <code>simd</code> object initialized with the results of the element-wise application of the indicated operator.
1657+
</ins>
1658+
</cxx-returns>
1659+
1660+
<cxx-throws>
1661+
<ins>
1662+
Nothing.
1663+
</ins>
1664+
</cxx-throws>
1665+
1666+
<cxx-remarks>
1667+
<ins>
1668+
Each of these operators shall not participate in overload resolution unless the indicated operator can be applied to objects of type <code>value_type</code>.
1669+
</ins>
1670+
</cxx-remarks>
1671+
</cxx-function>
1672+
1673+
<cxx-function>
1674+
<cxx-signature><ins>
1675+
friend simd operator&lt;&lt;(const simd& v, int n);
1676+
friend simd operator&gt;&gt;(const simd& v, int n);
1677+
</ins></cxx-signature>
1678+
1679+
<cxx-returns>
1680+
<ins>
1681+
A <code>simd</code> object where the <em>i</em>-th element is initialized to the result of applying the indicated operator to <code>v[i]</code> and <code>n</code> for all <code>i</code> &#8714; <code>[0, size())</code>.
1682+
</ins>
1683+
</cxx-returns>
1684+
1685+
<cxx-throws>
1686+
<ins>
1687+
Nothing.
1688+
</ins>
1689+
</cxx-throws>
1690+
1691+
<cxx-remarks>
1692+
<ins>
1693+
These operators shall not participate in overload resolution unless the indicated operator can be applied to objects of type <code>value_type</code>.
1694+
</ins>
1695+
</cxx-remarks>
1696+
</cxx-function>
1697+
</cxx-section>
1698+
</cxx-section>
16351699
</cxx-section>
16361700
</cxx-clause>
16371701

0 commit comments

Comments
 (0)