Skip to content

Commit 600fe56

Browse files
jensmaurertkoeppe
authored andcommitted
[simd.syn] Compactify presentation of gather/scatter functions
1 parent e7e5b69 commit 600fe56

File tree

1 file changed

+18
-32
lines changed

1 file changed

+18
-32
lines changed

source/numerics.tex

Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -16662,53 +16662,39 @@
1666216662
const M& original = {});
1666316663

1666416664
// \ref{simd.permute.memory}, permute to and from memory
16665-
template<class V = @\seebelow@,
16666-
ranges::@\libconcept{contiguous_range}@ R, @\exposconcept{simd-integral}@ I, class... Flags>
16665+
template<class V = @\seebelow@, ranges::@\libconcept{contiguous_range}@ R, @\exposconcept{simd-integral}@ I, class... Flags>
1666716666
requires ranges::@\libconcept{sized_range}@<R>
16668-
constexpr V
16669-
unchecked_gather_from(R&& in,
16670-
const I& indices, flags<Flags...> f = {});
16671-
template<class V = @\seebelow@,
16672-
ranges::@\libconcept{contiguous_range}@ R, @\exposconcept{simd-integral}@ I, class... Flags>
16667+
constexpr V unchecked_gather_from(R&& in, const I& indices, flags<Flags...> f = {});
16668+
template<class V = @\seebelow@, ranges::@\libconcept{contiguous_range}@ R, @\exposconcept{simd-integral}@ I, class... Flags>
1667316669
requires ranges::@\libconcept{sized_range}@<R>
16674-
constexpr V
16675-
unchecked_gather_from(R&& in, const typename I::mask_type& mask,
16676-
const I& indices, flags<Flags...> f = {});
16670+
constexpr V unchecked_gather_from(R&& in, const typename I::mask_type& mask,
16671+
const I& indices, flags<Flags...> f = {});
1667716672

16678-
template<class V = @\seebelow@,
16679-
ranges::@\libconcept{contiguous_range}@ R, @\exposconcept{simd-integral}@ I, class... Flags>
16673+
template<class V = @\seebelow@, ranges::@\libconcept{contiguous_range}@ R, @\exposconcept{simd-integral}@ I, class... Flags>
1668016674
requires ranges::@\libconcept{sized_range}@<R>
16681-
constexpr V
16682-
partial_gather_from(R&& in,
16683-
const I& indices, flags<Flags...> f = {});
16684-
template<class V = @\seebelow@,
16685-
ranges::@\libconcept{contiguous_range}@ R, @\exposconcept{simd-integral}@ I, class... Flags>
16675+
constexpr V partial_gather_from(R&& in, const I& indices, flags<Flags...> f = {});
16676+
template<class V = @\seebelow@, ranges::@\libconcept{contiguous_range}@ R, @\exposconcept{simd-integral}@ I, class... Flags>
1668616677
requires ranges::@\libconcept{sized_range}@<R>
16687-
constexpr V
16688-
partial_gather_from(R&& in, const typename I::mask_type& mask,
16689-
const I& indices, flags<Flags...> f = {});
16678+
constexpr V partial_gather_from(R&& in, const typename I::mask_type& mask,
16679+
const I& indices, flags<Flags...> f = {});
1669016680

1669116681
template<@\exposconcept{simd-vec-type}@ V, ranges::@\libconcept{contiguous_range}@ R, @\exposconcept{simd-integral}@ I, class... Flags>
1669216682
requires ranges::@\libconcept{sized_range}@<R>
16693-
constexpr void
16694-
unchecked_scatter_to(const V& v, R&& out,
16695-
const I& indices, flags<Flags...> f = {});
16683+
constexpr void unchecked_scatter_to(const V& v, R&& out,
16684+
const I& indices, flags<Flags...> f = {});
1669616685
template<@\exposconcept{simd-vec-type}@ V, ranges::@\libconcept{contiguous_range}@ R, @\exposconcept{simd-integral}@ I, class... Flags>
1669716686
requires ranges::@\libconcept{sized_range}@<R>
16698-
constexpr void
16699-
unchecked_scatter_to(const V& v, R&& out, const typename I::mask_type& mask,
16700-
const I& indices, flags<Flags...> f = {});
16687+
constexpr void unchecked_scatter_to(const V& v, R&& out, const typename I::mask_type& mask,
16688+
const I& indices, flags<Flags...> f = {});
1670116689

1670216690
template<@\exposconcept{simd-vec-type}@ V, ranges::@\libconcept{contiguous_range}@ R, @\exposconcept{simd-integral}@ I, class... Flags>
1670316691
requires ranges::@\libconcept{sized_range}@<R>
16704-
constexpr void
16705-
partial_scatter_to(const V& v, R&& out,
16706-
const I& indices, flags<Flags...> f = {});
16692+
constexpr void partial_scatter_to(const V& v, R&& out,
16693+
const I& indices, flags<Flags...> f = {});
1670716694
template<@\exposconcept{simd-vec-type}@ V, ranges::@\libconcept{contiguous_range}@ R, @\exposconcept{simd-integral}@ I, class... Flags>
1670816695
requires ranges::@\libconcept{sized_range}@<R>
16709-
constexpr void
16710-
partial_scatter_to(const V& v, R&& out, const typename I::mask_type& mask,
16711-
const I& indices, flags<Flags...> f = {});
16696+
constexpr void partial_scatter_to(const V& v, R&& out, const typename I::mask_type& mask,
16697+
const I& indices, flags<Flags...> f = {});
1671216698

1671316699
// \ref{simd.creation}, \tcode{basic_vec} and \tcode{basic_mask} creation
1671416700
template<class T, class Abi>

0 commit comments

Comments
 (0)