Skip to content

Commit c764963

Browse files
authored
[simd.syn] Fix capitalization and code fonts in synopsis comments; reflow declarations (#8093)
1 parent 42e68bf commit c764963

File tree

1 file changed

+37
-35
lines changed

1 file changed

+37
-35
lines changed

source/numerics.tex

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16515,24 +16515,24 @@
1651516515
template<@\exposid{simd-size-type}@ N, class V> struct resize { using type = @\seebelow@; };
1651616516
template<@\exposid{simd-size-type}@ N, class V> using @\libmember{resize_t}{simd}@ = typename resize<N, V>::type;
1651716517

16518-
// \ref{simd.flags}, Load and store flags
16518+
// \ref{simd.flags}, load and store flags
1651916519
template<class... Flags> struct flags;
1652016520
inline constexpr flags<> @\libmember{flag_default}{simd}@{};
1652116521
inline constexpr flags<@\exposid{convert-flag}@> @\libmember{flag_convert}{simd}@{};
1652216522
inline constexpr flags<@\exposid{aligned-flag}@> @\libmember{flag_aligned}{simd}@{};
1652316523
template<size_t N> requires (has_single_bit(N))
1652416524
constexpr flags<@\exposid{overaligned-flag}<N>@> @\libmember{flag_overaligned}{simd}@{};
1652516525

16526-
// \ref{simd.iterator}, Class template \exposid{simd-iterator}
16526+
// \ref{simd.iterator}, class template \exposid{simd-iterator}
1652716527
template<class V>
1652816528
class @\exposidnc{simd-iterator}@; // \expos
1652916529

16530-
// \ref{simd.class}, Class template \tcode{basic_vec}
16530+
// \ref{simd.class}, class template \tcode{basic_vec}
1653116531
template<class T, class Abi = @\exposid{native-abi}@<T>> class basic_vec;
1653216532
template<class T, @\exposid{simd-size-type}@ N = @\exposid{simd-size-v}@<T, @\exposid{native-abi}@<T>>>
1653316533
using @\libmember{vec}{simd}@ = basic_vec<T, @\exposid{deduce-abi-t}@<T, N>>;
1653416534

16535-
// \ref{simd.mask.class}, Class template \tcode{basic_mask}
16535+
// \ref{simd.mask.class}, class template \tcode{basic_mask}
1653616536
template<size_t Bytes, class Abi = @\exposid{native-abi}@<@\exposid{integer-from}@<Bytes>>> class basic_mask;
1653716537
template<class T, @\exposid{simd-size-type}@ N = @\exposid{simd-size-v}@<T, @\exposid{native-abi}@<T>>>
1653816538
using @\libmember{mask}{simd}@ = basic_mask<sizeof(T), @\exposid{deduce-abi-t}@<T, N>>;
@@ -16627,7 +16627,7 @@
1662716627
constexpr void partial_store(const basic_vec<T, Abi>& v, I first, S last,
1662816628
const typename basic_vec<T, Abi>::mask_type& mask, flags<Flags...> f = {});
1662916629

16630-
// \ref{simd.permute.static}, Permute by static index generator
16630+
// \ref{simd.permute.static}, permute by static index generator
1663116631
static constexpr @\exposid{simd-size-type}@ @\libmember{zero_element}{simd}@ = @\impdefx{value of \tcode{simd::zero_element}}@;
1663216632
static constexpr @\exposid{simd-size-type}@ @\libmember{uninit_element}{simd}@ = @\impdefx{value of \tcode{simd::uninit_element}}@;
1663316633

@@ -16636,13 +16636,13 @@
1663616636
template<@\exposid{simd-size-type}@ N = @\seebelow@, @\exposconcept{simd-mask-type}@ M, class IdxMap>
1663716637
constexpr resize_t<N, M> permute(const M& v, IdxMap&& idxmap);
1663816638

16639-
// \ref{simd.permute.dynamic}, Permute by dynamic index
16639+
// \ref{simd.permute.dynamic}, permute by dynamic index
1664016640
template<@\exposconcept{simd-vec-type}@ V, @\exposconcept{simd-integral}@ I>
1664116641
constexpr resize_t<I::size(), V> permute(const V& v, const I& indices);
1664216642
template<@\exposconcept{simd-mask-type}@ M, @\exposconcept{simd-integral}@ I>
1664316643
constexpr resize_t<I::size(), M> permute(const M& v, const I& indices);
1664416644

16645-
// \ref{simd.permute.mask}, Permute by active mask bits
16645+
// \ref{simd.permute.mask}, permute by active mask bits
1664616646
template<@\exposconcept{simd-vec-type}@ V>
1664716647
constexpr V compress(const V& v, const typename V::mask_type& selector);
1664816648
template<@\exposconcept{simd-mask-type}@ M>
@@ -16661,7 +16661,7 @@
1666116661
constexpr M expand(const M& v, const type_identity_t<M>& selector,
1666216662
const M& original = {});
1666316663

16664-
// \ref{simd.permute.memory}, Permute to and from memory
16664+
// \ref{simd.permute.memory}, permute to and from memory
1666516665
template<class V = @\seebelow@,
1666616666
ranges::@\libconcept{contiguous_range}@ R, @\exposconcept{simd-integral}@ I, class... Flags>
1666716667
requires ranges::@\libconcept{sized_range}@<R>
@@ -16769,7 +16769,7 @@
1676916769
constexpr T reduce_max(const basic_vec<T, Abi>&,
1677016770
const typename basic_vec<T, Abi>::mask_type&) noexcept;
1677116771

16772-
// \ref{simd.alg}, Algorithms
16772+
// \ref{simd.alg}, algorithms
1677316773
template<class T, class Abi>
1677416774
constexpr basic_vec<T, Abi>
1677516775
min(const basic_vec<T, Abi>& a, const basic_vec<T, Abi>& b) noexcept;
@@ -16791,7 +16791,7 @@
1679116791
constexpr auto select(const basic_mask<Bytes, Abi>& c, const T& a, const U& b)
1679216792
noexcept -> decltype(@\exposid{simd-select-impl}@(c, a, b));
1679316793

16794-
// \ref{simd.math}, Mathematical functions
16794+
// \ref{simd.math}, mathematical functions
1679516795
template<@\exposconcept{math-floating-point}@ V> constexpr @\exposid{deduced-vec-t}@<V> acos(const V& x);
1679616796
template<@\exposconcept{math-floating-point}@ V> constexpr @\exposid{deduced-vec-t}@<V> asin(const V& x);
1679716797
template<@\exposconcept{math-floating-point}@ V> constexpr @\exposid{deduced-vec-t}@<V> atan(const V& x);
@@ -16814,18 +16814,18 @@
1681416814
frexp(const V& value, rebind_t<int, @\exposid{deduced-vec-t}@<V>>* exp);
1681516815
template<@\exposconcept{math-floating-point}@ V>
1681616816
constexpr rebind_t<int, @\exposid{deduced-vec-t}@<V>> ilogb(const V& x);
16817-
template<@\exposconcept{math-floating-point}@ V> constexpr @\exposid{deduced-vec-t}@<V> ldexp(const V& x, const
16818-
rebind_t<int, @\exposid{deduced-vec-t}@<V>>& exp);
16817+
template<@\exposconcept{math-floating-point}@ V>
16818+
constexpr @\exposid{deduced-vec-t}@<V> ldexp(const V& x, const rebind_t<int, @\exposid{deduced-vec-t}@<V>>& exp);
1681916819
template<@\exposconcept{math-floating-point}@ V> constexpr @\exposid{deduced-vec-t}@<V> log(const V& x);
1682016820
template<@\exposconcept{math-floating-point}@ V> constexpr @\exposid{deduced-vec-t}@<V> log10(const V& x);
1682116821
template<@\exposconcept{math-floating-point}@ V> constexpr @\exposid{deduced-vec-t}@<V> log1p(const V& x);
1682216822
template<@\exposconcept{math-floating-point}@ V> constexpr @\exposid{deduced-vec-t}@<V> log2(const V& x);
1682316823
template<@\exposconcept{math-floating-point}@ V> constexpr @\exposid{deduced-vec-t}@<V> logb(const V& x);
1682416824
template<class T, class Abi>
16825-
constexpr basic_vec<T, Abi> modf(const type_identity_t<basic_vec<T, Abi>>& value,
16826-
basic_vec<T, Abi>* iptr);
16827-
template<@\exposconcept{math-floating-point}@ V> constexpr @\exposid{deduced-vec-t}@<V> scalbn(const V& x, const
16828-
rebind_t<int, @\exposid{deduced-vec-t}@<V>>& n);
16825+
constexpr basic_vec<T, Abi>
16826+
modf(const type_identity_t<basic_vec<T, Abi>>& value, basic_vec<T, Abi>* iptr);
16827+
template<@\exposconcept{math-floating-point}@ V>
16828+
constexpr @\exposid{deduced-vec-t}@<V> scalbn(const V& x, const rebind_t<int, @\exposid{deduced-vec-t}@<V>>& n);
1682916829
template<@\exposconcept{math-floating-point}@ V>
1683016830
constexpr @\exposid{deduced-vec-t}@<V> scalbln(
1683116831
const V& x, const rebind_t<long int, @\exposid{deduced-vec-t}@<V>>& n);
@@ -16882,7 +16882,7 @@
1688216882
constexpr @\exposid{math-common-simd-t}@<V0, V1, V2> fma(const V0& x, const V1& y, const V2& z);
1688316883
template<class V0, class V1, class V2>
1688416884
constexpr @\exposid{math-common-simd-t}@<V0, V1, V2>
16885-
lerp(const V0& a, const V1& b, const V2& t) noexcept;
16885+
lerp(const V0& a, const V1& b, const V2& t) noexcept;
1688616886
template<@\exposconcept{math-floating-point}@ V>
1688716887
constexpr rebind_t<int, @\exposid{deduced-vec-t}@<V>> fpclassify(const V& x);
1688816888
template<@\exposconcept{math-floating-point}@ V>
@@ -16914,13 +16914,11 @@
1691416914
constexpr typename @\exposid{math-common-simd-t}@<V0, V1>::mask_type
1691516915
isunordered(const V0& x, const V1& y);
1691616916
template<@\exposconcept{math-floating-point}@ V>
16917-
@\exposid{deduced-vec-t}@<V> assoc_laguerre(const rebind_t<unsigned, @\exposid{deduced-vec-t}@<V>>& n, const
16918-
rebind_t<unsigned, @\exposid{deduced-vec-t}@<V>>& m,
16919-
const V& x);
16917+
@\exposid{deduced-vec-t}@<V> assoc_laguerre(const rebind_t<unsigned, @\exposid{deduced-vec-t}@<V>>& n,
16918+
const rebind_t<unsigned, @\exposid{deduced-vec-t}@<V>>& m, const V& x);
1692016919
template<@\exposconcept{math-floating-point}@ V>
16921-
@\exposid{deduced-vec-t}@<V> assoc_legendre(const rebind_t<unsigned, @\exposid{deduced-vec-t}@<V>>& l, const
16922-
rebind_t<unsigned, @\exposid{deduced-vec-t}@<V>>& m,
16923-
const V& x);
16920+
@\exposid{deduced-vec-t}@<V> assoc_legendre(const rebind_t<unsigned, @\exposid{deduced-vec-t}@<V>>& l,
16921+
const rebind_t<unsigned, @\exposid{deduced-vec-t}@<V>>& m, const V& x);
1692416922
template<class V0, class V1>
1692516923
@\exposid{math-common-simd-t}@<V0, V1> beta(const V0& x, const V1& y);
1692616924
template<@\exposconcept{math-floating-point}@ V> @\exposid{deduced-vec-t}@<V> comp_ellint_1(const V& k);
@@ -16960,7 +16958,7 @@
1696016958
@\exposid{deduced-vec-t}@<V>
1696116959
sph_neumann(const rebind_t<unsigned, @\exposid{deduced-vec-t}@<V>>& n, const V& x);
1696216960

16963-
// \ref{simd.bit}, Bit manipulation
16961+
// \ref{simd.bit}, bit manipulation
1696416962
template<@\exposconcept{simd-vec-type}@ V> constexpr V byteswap(const V& v) noexcept;
1696516963
template<@\exposconcept{simd-vec-type}@ V> constexpr V bit_ceil(const V& v) noexcept;
1696616964
template<@\exposconcept{simd-vec-type}@ V> constexpr V bit_floor(const V& v) noexcept;
@@ -16979,21 +16977,25 @@
1697916977
constexpr V rotr(const V& v, int s) noexcept;
1698016978

1698116979
template<@\exposconcept{simd-vec-type}@ V>
16982-
constexpr rebind_t<make_signed_t<typename V::value_type>, V> bit_width(const V& v) noexcept;
16980+
constexpr rebind_t<make_signed_t<typename V::value_type>, V>
16981+
bit_width(const V& v) noexcept;
1698316982
template<@\exposconcept{simd-vec-type}@ V>
1698416983
constexpr rebind_t<make_signed_t<typename V::value_type>, V>
16985-
countl_zero(const V& v) noexcept;
16984+
countl_zero(const V& v) noexcept;
1698616985
template<@\exposconcept{simd-vec-type}@ V>
16987-
constexpr rebind_t<make_signed_t<typename V::value_type>, V> countl_one(const V& v) noexcept;
16986+
constexpr rebind_t<make_signed_t<typename V::value_type>, V>
16987+
countl_one(const V& v) noexcept;
1698816988
template<@\exposconcept{simd-vec-type}@ V>
1698916989
constexpr rebind_t<make_signed_t<typename V::value_type>, V>
16990-
countr_zero(const V& v) noexcept;
16990+
countr_zero(const V& v) noexcept;
1699116991
template<@\exposconcept{simd-vec-type}@ V>
16992-
constexpr rebind_t<make_signed_t<typename V::value_type>, V> countr_one(const V& v) noexcept;
16992+
constexpr rebind_t<make_signed_t<typename V::value_type>, V>
16993+
countr_one(const V& v) noexcept;
1699316994
template<@\exposconcept{simd-vec-type}@ V>
16994-
constexpr rebind_t<make_signed_t<typename V::value_type>, V> popcount(const V& v) noexcept;
16995+
constexpr rebind_t<make_signed_t<typename V::value_type>, V>
16996+
popcount(const V& v) noexcept;
1699516997

16996-
// \ref{simd.complex.math}, vec complex math
16998+
// \ref{simd.complex.math}, \tcode{vec} complex math
1699716999
template<@\exposconcept{simd-complex}@ V>
1699817000
constexpr rebind_t<@\exposid{simd-complex-value-type<V>}@, V> real(const V&) noexcept;
1699917001

@@ -17036,13 +17038,13 @@
1703617038
}
1703717039

1703817040
namespace std {
17039-
// See \ref{simd.alg}, Algorithms
17041+
// See \ref{simd.alg}, algorithms
1704017042
using simd::min;
1704117043
using simd::max;
1704217044
using simd::minmax;
1704317045
using simd::clamp;
1704417046

17045-
// See \ref{simd.math}, Mathematical functions
17047+
// See \ref{simd.math}, mathematical functions
1704617048
using simd::acos;
1704717049
using simd::asin;
1704817050
using simd::atan;
@@ -17135,7 +17137,7 @@
1713517137
using simd::sph_legendre;
1713617138
using simd::sph_neumann;
1713717139

17138-
// See \ref{simd.bit}, Bit manipulation
17140+
// See \ref{simd.bit}, bit manipulation
1713917141
using simd::byteswap;
1714017142
using simd::bit_ceil;
1714117143
using simd::bit_floor;
@@ -17149,7 +17151,7 @@
1714917151
using simd::countr_one;
1715017152
using simd::popcount;
1715117153

17152-
// See \ref{simd.complex.math}, vec complex math
17154+
// See \ref{simd.complex.math}, \tcode{vec} complex math
1715317155
using simd::real;
1715417156
using simd::imag;
1715517157
using simd::arg;

0 commit comments

Comments
 (0)