Skip to content

Commit

Permalink
Reword ctor effects
Browse files Browse the repository at this point in the history
ChangeLog:

	* P1928/changelog.tex:
	* P1928/wording.tex:
  • Loading branch information
mattkretz committed Jun 27, 2024
1 parent 66b6ba9 commit 3f5216a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions P1928/changelog.tex
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,7 @@ \section{Changelog}
\item Reword \code{rebind_simd} and \code{resize_simd}.
\item Remove mention of implementation-defined load/store flags.
\item Remove paragraph about default initialization of \simd.
\item Reword all constructor \emph{Effects} from “Constructs an object \ldots
to “Initializes \ldots”.
\todo Reorder \code{simd} and \code{simd_mask} specification in the wording (mask first).
\end{revision}
22 changes: 11 additions & 11 deletions P1928/wording.tex
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@
\tcode{\simdsizev<U, UAbi> == size()} is \tcode{true}.

\pnum\effects
Constructs an object where the $i^\text{th}$ element equals \tcode{static_cast<T>(x[$i$])} \foralli.
Initializes the $i^\text{th}$ element with \tcode{static_cast<T>(x[$i$])} \foralli.

\pnum\remarks
%The constructor is \tcode{explicit} if
Expand Down Expand Up @@ -779,8 +779,8 @@
\foralli.

\pnum\effects
Constructs an object where the $i^\text{th}$ element is initialized to
\tcode{gen(integral_constant<\simdsizetype, i>())}.
Initializes the $i^\text{th}$ element with
\tcode{gen(integral_constant<\simdsizetype, i>())} \foralli.

\pnum
The calls to \tcode{gen} are unsequenced with respect to each other.
Expand Down Expand Up @@ -819,7 +819,7 @@
\begin{itemdescr}
\SimdLoadDescr
{\tcode{[first, first + size())} is a valid range.}
{Constructs an object where the $i^\text{th}$ element is initialized to \tcode{static_cast<T>(first[$i$])} \foralli.}
{Initializes the $i^\text{th}$ element with \tcode{static_cast<T>(first[$i$])} \foralli.}
\end{itemdescr}

\begin{itemdecl}
Expand All @@ -830,7 +830,7 @@
\begin{itemdescr}
\SimdLoadDescr
{\validMaskedRange}
{Constructs an object where the $i^\text{th}$ element is initialized to \tcode{mask[$i$] ? static_cast<T>(first[$i$]) : T()} \foralli.}
{Initializes the $i^\text{th}$ element with \tcode{mask[$i$] ? static_cast<T>(first[$i$]) : T()} \foralli.}
\end{itemdescr}

\rSec2[simd.copy]{\tcode{basic_simd} copy functions}
Expand Down Expand Up @@ -1623,7 +1623,7 @@

\begin{itemdescr}
\pnum\effects
Constructs an object with each element initialized to \tcode{x}.
Initializes each element with \tcode{x}.
\end{itemdescr}

\begin{itemdecl}
Expand All @@ -1636,7 +1636,7 @@
\tcode{\simdsizev<U, UAbi> == size()}.

\pnum\effects
Constructs an object of type \tcode{basic_simd_mask} where the $i^\text{th}$ element equals \tcode{x[$i$]} \foralli.
Initializes the $i^\text{th}$ element with \tcode{x[$i$]} \foralli.
\end{itemdescr}

\begin{itemdecl}
Expand All @@ -1649,8 +1649,8 @@
well-formed \foralli.

\pnum\effects
Constructs an object where the $i^\text{th}$ element is initialized to
\tcode{gen(integral_constant<\simdsizetype, i>())}.
Initializes the $i^\text{th}$ element with
\tcode{gen(integral_constant<\simdsizetype, i>())} \foralli.

\pnum
The calls to \tcode{gen} are unsequenced with respect to each other.
Expand Down Expand Up @@ -1684,7 +1684,7 @@
\begin{itemdescr}
\MaskLoadDescr
{\tcode{[first, first + size())} is a valid range.}
{Constructs an object where the $i^\text{th}$ element is initialized to \tcode{first[$i$]} \foralli.}
{Initializes the $i^\text{th}$ element with \tcode{first[$i$]} \foralli.}
\end{itemdescr}

\begin{itemdecl}
Expand All @@ -1695,7 +1695,7 @@
\begin{itemdescr}
\MaskLoadDescr
{\validMaskedRange}
{Constructs an object where the $i^\text{th}$ element is initialized to \tcode{mask[$i$] ? first[$i$] : false} \foralli.}
{Initializes the $i^\text{th}$ element with \tcode{mask[$i$] ? first[$i$] : false} \foralli.}
\end{itemdescr}

\rSec2[simd.mask.copy]{\tcode{basic_simd_mask} copy functions}
Expand Down

0 comments on commit 3f5216a

Please sign in to comment.