Skip to content

Commit 4018b35

Browse files
Merge pull request #64 from jaredhoberock/v2
Break up these long lines so that they don't spill into the margin
2 parents 11b9477 + ad2e293 commit 4018b35

File tree

1 file changed

+91
-40
lines changed

1 file changed

+91
-40
lines changed

data_parallel_types.html

+91-40
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ <h1><ins>Header <code>&lt;experimental/simd&gt;</code> synopsis</ins></h1>
7474
template&lt;class T&gt; inline constexpr bool is_simd_mask_v = is_simd_mask&lt;T&gt;::value;
7575

7676
template&lt;class T&gt; struct is_simd_flag_type;
77-
template&lt;class T&gt; inline constexpr bool is_simd_flag_type_v = is_simd_flag_type&lt;T&gt;::value;
77+
template&lt;class T&gt; inline constexpr bool is_simd_flag_type_v =
78+
is_simd_flag_type&lt;T&gt;::value;
7879

7980
template&lt;class T, class Abi = simd_abi::compatible&lt;T&gt;&gt; struct simd_size;
8081
template&lt;class T, class Abi = simd_abi::compatible&lt;T&gt;&gt;
@@ -92,34 +93,47 @@ <h1><ins>Header <code>&lt;experimental/simd&gt;</code> synopsis</ins></h1>
9293
<cxx-ref insynopsis="" to="parallel.simd.mask.class"></cxx-ref>
9394
template&lt;class T, class Abi = simd_abi::compatible&lt;T&gt;&gt; class simd_mask;
9495
template&lt;class T&gt; using native_simd_mask = simd_mask&lt;T, simd_abi::native&lt;T&gt;&gt;;
95-
template&lt;class T, int N&gt; using fixed_size_simd_mask = simd_mask&lt;T, simd_abi::fixed_size&lt;N&gt;&gt;;
96+
template&lt;class T, int N&gt; using fixed_size_simd_mask =
97+
simd_mask&lt;T, simd_abi::fixed_size&lt;N&gt;&gt;;
9698

9799
<cxx-ref insynopsis="" to="parallel.simd.casts"></cxx-ref>
98100
template&lt;class T, class U, class Abi&gt; <em>see below</em> simd_cast(const simd&lt;U, Abi&gt;&);
99101
template&lt;class T, class U, class Abi&gt; <em>see below</em> static_simd_cast(const simd&lt;U, Abi&gt;&);
100102

101103
template&lt;class T, class Abi&gt;
102-
fixed_size_simd&lt;T, simd_size_v&lt;T, Abi&gt;&gt; to_fixed_size(const simd&lt;T, Abi&gt;&) noexcept;
104+
fixed_size_simd&lt;T, simd_size_v&lt;T, Abi&gt;&gt;
105+
to_fixed_size(const simd&lt;T, Abi&gt;&) noexcept;
103106
template&lt;class T, class Abi&gt;
104-
fixed_size_simd_mask&lt;T, simd_size_v&lt;T, Abi&gt;&gt; to_fixed_size(const simd_mask&lt;T, Abi&gt;&) noexcept;
105-
template&lt;class T, int N&gt; native_simd&lt;T&gt; to_native(const fixed_size_simd&lt;T, N&gt;&) noexcept;
106-
template&lt;class T, int N&gt; native_simd_mask&lt;T&gt; to_native(const fixed_size_simd_mask&lt;T, N&gt;&) noexcept;
107-
template&lt;class T, int N&gt; simd&lt;T&gt; to_compatible(const fixed_size_simd&lt;T, N&gt;&) noexcept;
108-
template&lt;class T, int N&gt; simd_mask&lt;T&gt; to_compatible(const fixed_size_simd_mask&lt;T, N&gt;&) noexcept;
107+
fixed_size_simd_mask&lt;T, simd_size_v&lt;T, Abi&gt;&gt;
108+
to_fixed_size(const simd_mask&lt;T, Abi&gt;&) noexcept;
109+
template&lt;class T, int N&gt;
110+
native_simd&lt;T&gt; to_native(const fixed_size_simd&lt;T, N&gt;&) noexcept;
111+
template&lt;class T, int N&gt;
112+
native_simd_mask&lt;T&gt; to_native(const fixed_size_simd_mask&lt;T, N&gt;&) noexcept;
113+
template&lt;class T, int N&gt;
114+
simd&lt;T&gt; to_compatible(const fixed_size_simd&lt;T, N&gt;&) noexcept;
115+
template&lt;class T, int N&gt;
116+
simd_mask&lt;T&gt; to_compatible(const fixed_size_simd_mask&lt;T, N&gt;&) noexcept;
109117

110118
template&lt;size_t... Sizes, class T, class Abi&gt;
111-
tuple&lt;simd&lt;T, simd_abi::deduce_t&lt;T, Sizes&gt;&gt;...&gt; split(const simd&lt;T, Abi&gt;&);
119+
tuple&lt;simd&lt;T, simd_abi::deduce_t&lt;T, Sizes&gt;&gt;...&gt;
120+
split(const simd&lt;T, Abi&gt;&);
112121
template&lt;size_t... Sizes, class T, class Abi&gt;
113-
tuple&lt;simd_mask&lt;T, simd_mask_abi::deduce_t&lt;T, Sizes&gt;&gt;...&gt; split(const simd_mask&lt;T, Abi&gt;&);
122+
tuple&lt;simd_mask&lt;T, simd_mask_abi::deduce_t&lt;T, Sizes&gt;&gt;...&gt;
123+
split(const simd_mask&lt;T, Abi&gt;&);
114124
template&lt;class V, class Abi&gt;
115-
array&lt;V, simd_size_v&lt;typename V::value_type, Abi&gt; / V::size()&gt; split(const simd&lt;typename V::value_type, Abi&gt;&);
125+
array&lt;V, simd_size_v&lt;typename V::value_type, Abi&gt; / V::size()&gt;
126+
split(const simd&lt;typename V::value_type, Abi&gt;&);
116127
template&lt;class V, class Abi&gt;
117-
array&lt;V, simd_size_v&lt;typename V::value_type, Abi&gt; / V::size()&gt; split(const simd_mask&lt;typename V::value_type, Abi&gt;&);
128+
array&lt;V, simd_size_v&lt;typename V::value_type, Abi&gt; / V::size()&gt;
129+
split(const simd_mask&lt;typename V::value_type, Abi&gt;&);
118130

119131
template&lt;class T, class... Abis&gt;
120-
simd&lt;T, simd_abi::deduce_t&lt;T, (simd_size_v&lt;T, Abis&gt; + ...)&gt;&gt; concat(const simd&lt;T, Abis&gt;&...);
132+
simd&lt;T, simd_abi::deduce_t&lt;T, (simd_size_v&lt;T, Abis&gt; + ...)&gt;&gt;
133+
concat(const simd&lt;T, Abis&gt;&...);
121134
template&lt;class T, class... Abis&gt;
122-
simd_mask&lt;T, simd_abi::deduce_t&lt;T, (simd_size_v&lt;T, Abis&gt; + ...)&gt;&gt; concat(const simd_mask&lt;T, Abis&gt;&...);
135+
simd_mask&lt;T, simd_abi::deduce_t&lt;T, (simd_size_v&lt;T, Abis&gt; + ...)&gt;&gt;
136+
concat(const simd_mask&lt;T, Abis&gt;&...);
123137

124138
<cxx-ref insynopsis="" to="parallel.simd.mask.reductions"></cxx-ref>
125139
template&lt;class T, class Abi&gt; bool all_of(const simd_mask&lt;T, Abi&gt;&) noexcept;
@@ -147,51 +161,83 @@ <h1><ins>Header <code>&lt;experimental/simd&gt;</code> synopsis</ins></h1>
147161
template&lt;class T&gt; using nodeduce_t = typename nodeduce&lt;T&gt;::type; // exposition only
148162

149163
template&lt;class T, class Abi&gt;
150-
where_expression&lt;simd_mask&lt;T, Abi&gt;, simd&lt;T, Abi&gt;&gt; where(const typename simd&lt;T, Abi&gt;::mask_type&, simd&lt;T, Abi&gt;&) noexcept;
164+
where_expression&lt;simd_mask&lt;T, Abi&gt;, simd&lt;T, Abi&gt;&gt;
165+
where(const typename simd&lt;T, Abi&gt;::mask_type&, simd&lt;T, Abi&gt;&) noexcept;
151166

152167
template&lt;class T, class Abi&gt;
153-
const_where_expression&lt;simd_mask&lt;T, Abi&gt;, simd&lt;T, Abi&gt;&gt; where(const typename simd&lt;T, Abi&gt;::mask_type&, const simd&lt;T, Abi&gt;&) noexcept;
168+
const_where_expression&lt;simd_mask&lt;T, Abi&gt;, simd&lt;T, Abi&gt;&gt;
169+
where(const typename simd&lt;T, Abi&gt;::mask_type&, const simd&lt;T, Abi&gt;&) noexcept;
154170

155171
template&lt;class T, class Abi&gt;
156-
where_expression&lt;simd_mask&lt;T, Abi&gt;, simd_mask&lt;T, Abi&gt;&gt; where(const nodeduce_t&lt;simd_mask&lt;T, Abit&gt;&gt;&, simd_mask&lt;T, Abi&gt;&) noexcept;
172+
where_expression&lt;simd_mask&lt;T, Abi&gt;, simd_mask&lt;T, Abi&gt;&gt;
173+
where(const nodeduce_t&lt;simd_mask&lt;T, Abit&gt;&gt;&, simd_mask&lt;T, Abi&gt;&) noexcept;
157174

158175
template&lt;class T, class Abi&gt;
159-
const_where_expression&lt;simd_mask&lt;T, Abi&gt;, simd_mask&lt;T, Abi&gt;&gt; where(const nodeduce_t&lt;simd_mask&lt;T, Abit&gt;&gt;&, const simd_mask&lt;T, Abi&gt;&) noexcept;
176+
const_where_expression&lt;simd_mask&lt;T, Abi&gt;, simd_mask&lt;T, Abi&gt;&gt;
177+
where(const nodeduce_t&lt;simd_mask&lt;T, Abit&gt;&gt;&, const simd_mask&lt;T, Abi&gt;&) noexcept;
160178

161179
template&lt;class T&gt;
162-
where_expression&lt;bool, T&gt; where(<em>see below</em> k, T& d) noexcept;
180+
where_expression&lt;bool, T&gt;
181+
where(<em>see below</em> k, T& d) noexcept;
163182

164183
template&lt;class T&gt;
165-
const_where_expression&lt;bool, T&gt; where(<em>see below</em> k, const T& d) noexcept;
184+
const_where_expression&lt;bool, T&gt;
185+
where(<em>see below</em> k, const T& d) noexcept;
166186

167187
<cxx-ref insynopsis="" to="parallel.simd.reductions"></cxx-ref>
168188
template&lt;class T, class Abi, class BinaryOperation = plus&lt;&gt;&gt;
169-
T reduce(const simd&lt;T, Abi&gt;&, BinaryOperation = {});
189+
T reduce(const simd&lt;T, Abi&gt;&,
190+
BinaryOperation = {});
170191

171192
template&lt;class M, class V, class BinaryOperation&gt;
172193
typename V::value_type reduce(const const_where_expression&lt;M, V&gt;& x,
173-
typename V::value_type identity_element, BinaryOperation binary_op);
194+
typename V::value_type identity_element,
195+
BinaryOperation binary_op);
174196
template&lt;class M, class V&gt;
175-
typename V::value_type reduce(const const_where_expression&lt;M, V&gt;& x, plus&lt;&gt; binary_op = {});
197+
typename V::value_type reduce(const const_where_expression&lt;M, V&gt;& x,
198+
plus&lt;&gt;
199+
binary_op = {});
176200
template&lt;class M, class V&gt;
177-
typename V::value_type reduce(const const_where_expression&lt;M, V&gt;& x, multiplies&lt;&gt; binary_op);
201+
typename V::value_type reduce(const const_where_expression&lt;M, V&gt;& x,
202+
multiplies&lt;&gt;
203+
binary_op);
178204
template&lt;class M, class V&gt;
179-
typename V::value_type reduce(const const_where_expression&lt;M, V&gt;& x, bit_and&lt;&gt; binary_op);
205+
typename V::value_type reduce(const const_where_expression&lt;M, V&gt;& x,
206+
bit_and&lt;&gt;
207+
binary_op);
180208
template&lt;class M, class V&gt;
181-
typename V::value_type reduce(const const_where_expression&lt;M, V&gt;& x, bit_or&lt;&gt; binary_op);
209+
typename V::value_type reduce(const const_where_expression&lt;M, V&gt;& x,
210+
bit_or&lt;&gt;
211+
binary_op);
182212
template&lt;class M, class V&gt;
183-
typename V::value_type reduce(const const_where_expression&lt;M, V&gt;& x, bit_xor&lt;&gt; binary_op);
213+
typename V::value_type reduce(const const_where_expression&lt;M, V&gt;& x,
214+
bit_xor&lt;&gt;
215+
binary_op);
184216

185-
template&lt;class T, class Abi&gt; T hmin(const simd&lt;T, abi&gt;&);
186-
template&lt;class T, class Abi&gt; typename V::value_type hmin(const const_where_expression&lt;M, V&gt;&);
187-
template&lt;class T, class Abi&gt; T hmax(const simd&lt;T, abi&gt;&);
188-
template&lt;class T, class Abi&gt; typename V::value_type hmax(const const_where_expression&lt;M, V&gt;&);
217+
template&lt;class T, class Abi&gt;
218+
T hmin(const simd&lt;T, abi&gt;&);
219+
template&lt;class T, class Abi&gt;
220+
typename V::value_type hmin(const const_where_expression&lt;M, V&gt;&);
221+
template&lt;class T, class Abi&gt;
222+
T hmax(const simd&lt;T, abi&gt;&);
223+
template&lt;class T, class Abi&gt;
224+
typename V::value_type hmax(const const_where_expression&lt;M, V&gt;&);
189225

190226
<cxx-ref insynopsis="" to="parallel.simd.alg"></cxx-ref>
191-
template&lt;class T, class Abi&gt; simd&lt;T, Abi&gt; min(const simd&lt;T, Abi&gt;& a, const simd&lt;T, Abi&gt;& b) noexcept;
192-
template&lt;class T, class Abi&gt; simd&lt;T, Abi&gt; max(const simd&lt;T, Abi&gt;& a, const simd&lt;T, Abi&gt;& b) noexcept;
193-
template&lt;class T, class Abi&gt; pair&lt;simd&lt;T, Abi&gt;, simd&lt;T, Abi&gt;&gt; minmax(const simd&lt;T, Abi&gt;& a, const simd&lt;T, Abi&gt;& b) noexcept;
194-
template&lt;class T, class Abi&gt; simd&lt;T, Abi&gt; clamp(const simd&lt;T, Abi&gt;& v, const simd&lt;T, Abi&gt;& lo, const simd&lt;T, Abi&gt;& hi) noexcept;
227+
template&lt;class T, class Abi&gt;
228+
simd&lt;T, Abi&gt;
229+
min(const simd&lt;T, Abi&gt;& a, const simd&lt;T, Abi&gt;& b) noexcept;
230+
template&lt;class T, class Abi&gt;
231+
simd&lt;T, Abi&gt;
232+
max(const simd&lt;T, Abi&gt;& a, const simd&lt;T, Abi&gt;& b) noexcept;
233+
template&lt;class T, class Abi&gt;
234+
pair&lt;simd&lt;T, Abi&gt;, simd&lt;T, Abi&gt;&gt;
235+
minmax(const simd&lt;T, Abi&gt;& a, const simd&lt;T, Abi&gt;& b) noexcept;
236+
template&lt;class T, class Abi&gt;
237+
simd&lt;T, Abi&gt;
238+
clamp(const simd&lt;T, Abi&gt;& v,
239+
const simd&lt;T, Abi&gt;& lo,
240+
const simd&lt;T, Abi&gt;& hi) noexcept;
195241
}
196242
}
197243
</pre>
@@ -2179,9 +2225,11 @@ <h1><ins>Casts</ins></h1>
21792225
<cxx-function>
21802226
<cxx-signature><ins>
21812227
template&lt;size_t... Sizes, class T, class Abi&gt;
2182-
tuple&lt;simd&lt;T, simd_abi::deduce_t&lt;T, Sizes&gt;&gt;...&gt; split(const simd&lt;T, Abi&gt;& x);
2228+
tuple&lt;simd&lt;T, simd_abi::deduce_t&lt;T, Sizes&gt;&gt;...&gt;
2229+
split(const simd&lt;T, Abi&gt;& x);
21832230
template&lt;size_t... Sizes, class T, class Abi&gt;
2184-
tuple&lt;simd_mask&lt;T, simd_abi::deduce_t&lt;T, Sizes&gt;&gt;...&gt; split(const simd_mask&lt;T, Abi&gt;& x);
2231+
tuple&lt;simd_mask&lt;T, simd_abi::deduce_t&lt;T, Sizes&gt;&gt;...&gt;
2232+
split(const simd_mask&lt;T, Abi&gt;& x);
21852233
</ins></cxx-signature>
21862234

21872235
<cxx-returns>
@@ -2200,9 +2248,11 @@ <h1><ins>Casts</ins></h1>
22002248
<cxx-function>
22012249
<cxx-signature><ins>
22022250
template&lt;class V, class Abi&gt;
2203-
array&lt;V, simd_size_v&lt;typename V::value_type, Abi&gt; / V::size()&gt; split(const simd&lt;typename V::value_type, Abi&gt;& x);
2251+
array&lt;V, simd_size_v&lt;typename V::value_type, Abi&gt; / V::size()&gt;
2252+
split(const simd&lt;typename V::value_type, Abi&gt;& x);
22042253
template&lt;class V, class Abi&gt;
2205-
array&lt;V, simd_size_v&lt;typename V::value_type, Abi&gt; / V::size()&gt; split(const simd_mask&lt;typename V::value_type, Abi&gt;& x);
2254+
array&lt;V, simd_size_v&lt;typename V::value_type, Abi&gt; / V::size()&gt;
2255+
split(const simd_mask&lt;typename V::value_type, Abi&gt;& x);
22062256
</ins></cxx-signature>
22072257

22082258
<cxx-returns>
@@ -2408,7 +2458,8 @@ <h1><ins>Class template <code>simd_mask</code> overview</ins></h1>
24082458
explicit simd_mask(value_type) noexcept;
24092459

24102460
<em>// implicit type conversion constructor</em>
2411-
template&lt;class U&gt; simd_mask(const simd_mask&lt;U, simd_abi::fixed_size&lt;size()&gt;&gt;&) noexcept;
2461+
template&lt;class U&gt;
2462+
simd_mask(const simd_mask&lt;U, simd_abi::fixed_size&lt;size()&gt;&gt;&) noexcept;
24122463

24132464
<em>// load constructor</em>
24142465
template&lt;class Flags&gt; simd_mask(const value_Type* mem, Flags);

0 commit comments

Comments
 (0)