Skip to content

Commit dd654bb

Browse files
committed
Introduce [parallel.simd.copy]
1 parent d6ceb11 commit dd654bb

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

data_parallel_types.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,6 +1348,42 @@ <h1><ins><code>simd</code> constructors</ins></h1>
13481348
</cxx-remarks>
13491349
</cxx-function>
13501350
</cxx-section>
1351+
1352+
<cxx-section id="parallel.simd.copy">
1353+
<h1><ins><code>simd</code> copy functions</ins></h1>
1354+
1355+
<cxx-function>
1356+
<cxx-signature><ins>template&lt;class U, class Flags&gt; void copy_from(const U* mem, Flags);</ins></cxx-signature>
1357+
1358+
<cxx-requires>
1359+
<ins>
1360+
If the template parameter <code>Flags</code> is <code>vector_aligned_tag</code>, <code>mem</code> shall point to storage aligned by <code>memory_alignment_v&lt;simd, U&gt;</code>. If the template parameter <code>Flags</code> is <code>overaligned_tag&lt;N&gt;</code>, <code>mem</code> shall point to storage aligend by <code>N</code>. If the template parameter <code>Flags</code> is <code>element_aligned_tag</code>, <code>mem</code> shall point to storage aligned by <code>alignonf(U)</code>. <code>[mem, mem + size())</code> is a valid range.
1361+
</ins>
1362+
</cxx-requires>
1363+
1364+
<cxx-effects>
1365+
<ins>
1366+
Replaces the elements of the <code>simd</code> object such that the <em>i</em>-th element is assigned with <code>static_cast&lt;T&gt;(mem[i])</code> for all <code>i</code> &#8714; <code>[0, size())</code>.
1367+
</ins>
1368+
</cxx-effects>
1369+
1370+
<cxx-remarks>
1371+
<ins>
1372+
This function shall not participate in overload resolution unless
1373+
1374+
<bl>
1375+
<li>
1376+
<code>is_simd_flag_type_v&lt;Flags&gt;</code> is <code>true</code>, and
1377+
</li>
1378+
1379+
<li>
1380+
<code>U</code> is a vectorizable type.
1381+
</li>
1382+
</bl>
1383+
</ins>
1384+
</cxx-remarks>
1385+
</cxx-function>
1386+
</cxx-section>
13511387
</cxx-section>
13521388
</cxx-clause>
13531389

0 commit comments

Comments
 (0)