|
Intel xvec
Experimental C++ simd class library
|
Invoke a callable on corresponding chunks of vectors or masks. More...
Functions | |
| template<simd_size_type _SuggestedN = 0, typename _Fn, vec_or_mask_type _Arg0, vec_or_mask_type... _Args> | |
| constexpr auto | xvec::simd::chunked_invoke (_Fn fn, const _Arg0 &arg0, const _Args &... args) |
| Invoke a callable on corresponding vector or mask chunks. | |
Invoke a callable on corresponding chunks of vectors or masks.
Proposed in P2929, "chunked_invoke", previously named simd_invoke.
|
constexpr |
Invoke a callable on corresponding vector or mask chunks.
| _SuggestedN | Chunk size, or zero to deduce a common native width. |
| _Fn | The callable type. |
| _Arg0 | The first vector or mask argument type. |
| _Args | The remaining vector or mask argument types. |
| fn | The callable invoked on each set of corresponding chunks. |
| arg0 | The first vector or mask argument. |
| args | The remaining vector or mask arguments. |
All arguments must have equal element counts. The final chunk may be smaller than the selected chunk size. The callable may accept a trailing argument giving the beginning index of the chunk.