Skip to content

Add const to cmp_value parameters of vector synchronization apis #543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions content/shmem_test_all_vector.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

\begin{C11synopsis}
int @\FuncDecl{shmem\_test\_all\_vector}@(TYPE *ivars, size_t nelems, const int *status, int cmp,
TYPE *cmp_values);
const TYPE *cmp_values);
\end{C11synopsis}
where \TYPE{} is one of the standard \ac{AMO} types specified by
Table \ref{stdamotypes}.

\begin{Csynopsis}
int @\FuncDecl{shmem\_\FuncParam{TYPENAME}\_test\_all\_vector}@(TYPE *ivars, size_t nelems, const int *status, int cmp,
TYPE *cmp_values);
const TYPE *cmp_values);
\end{Csynopsis}
where \TYPE{} is one of the standard \ac{AMO} types and has a
corresponding \TYPENAME{} specified by Table \ref{stdamotypes}.
Expand Down Expand Up @@ -46,8 +46,7 @@
conditions. This routine compares each element of the
\VAR{ivars} array in the test set with each respective value in
\VAR{cmp\_values} according to the comparison operator \VAR{cmp} at the
calling \ac{PE}. If \VAR{nelems} is 0, the test set is empty and this
routine returns 1.
calling \ac{PE}.

The optional \VAR{status} is a mask array of length \VAR{nelems} where each element
corresponds to the respective element in \VAR{ivars} and indicates whether
Expand Down
4 changes: 2 additions & 2 deletions content/shmem_test_any_vector.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

\begin{C11synopsis}
size_t @\FuncDecl{shmem\_test\_any\_vector}@(TYPE *ivars, size_t nelems, const int *status, int cmp,
TYPE *cmp_values);
const TYPE *cmp_values);
\end{C11synopsis}
where \TYPE{} is one of the standard \ac{AMO} types specified by
Table \ref{stdamotypes}.

\begin{Csynopsis}
size_t @\FuncDecl{shmem\_\FuncParam{TYPENAME}\_test\_any\_vector}@(TYPE *ivars, size_t nelems, const int *status,
int cmp, TYPE *cmp_values);
int cmp, const TYPE *cmp_values);
\end{Csynopsis}
where \TYPE{} is one of the standard \ac{AMO} types and has a
corresponding \TYPENAME{} specified by Table \ref{stdamotypes}.
Expand Down
4 changes: 2 additions & 2 deletions content/shmem_test_some_vector.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

\begin{C11synopsis}
size_t @\FuncDecl{shmem\_test\_some\_vector}@(TYPE *ivars, size_t nelems, size_t *indices, const int *status,
int cmp, TYPE *cmp_values);
int cmp, const TYPE *cmp_values);
\end{C11synopsis}
where \TYPE{} is one of the standard \ac{AMO} types specified by
Table \ref{stdamotypes}.

\begin{Csynopsis}
size_t @\FuncDecl{shmem\_\FuncParam{TYPENAME}\_test\_some\_vector}@(TYPE *ivars, size_t nelems, size_t *indices,
const int *status, int cmp, TYPE *cmp_values);
const int *status, int cmp, const TYPE *cmp_values);
\end{Csynopsis}
where \TYPE{} is one of the standard \ac{AMO} types and has a
corresponding \TYPENAME{} specified by Table \ref{stdamotypes}.
Expand Down
4 changes: 2 additions & 2 deletions content/shmem_wait_until_all_vector.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

\begin{C11synopsis}
void @\FuncDecl{shmem\_wait\_until\_all\_vector}@(TYPE *ivars, size_t nelems, const int *status, int cmp,
TYPE *cmp_values);
const TYPE *cmp_values);
\end{C11synopsis}
where \TYPE{} is one of the standard \ac{AMO} types specified by
Table \ref{stdamotypes}.

\begin{Csynopsis}
void @\FuncDecl{shmem\_\FuncParam{TYPENAME}\_wait\_until\_all\_vector}@(TYPE *ivars, size_t nelems, const int *status, int cmp, TYPE *cmp_values);
void @\FuncDecl{shmem\_\FuncParam{TYPENAME}\_wait\_until\_all\_vector}@(TYPE *ivars, size_t nelems, const int *status, int cmp, const TYPE *cmp_values);
\end{Csynopsis}
where \TYPE{} is one of the standard \ac{AMO} types and has a
corresponding \TYPENAME{} specified by Table~\ref{stdamotypes}.
Expand Down
4 changes: 2 additions & 2 deletions content/shmem_wait_until_any_vector.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

\begin{C11synopsis}
size_t @\FuncDecl{shmem\_wait\_until\_any\_vector}@(TYPE *ivars, size_t nelems, const int *status, int cmp,
TYPE *cmp_values);
const TYPE *cmp_values);
\end{C11synopsis}
where \TYPE{} is one of the standard \ac{AMO} types specified by
Table \ref{stdamotypes}.

\begin{Csynopsis}
size_t @\FuncDecl{shmem\_\FuncParam{TYPENAME}\_wait\_until\_any\_vector}@(TYPE *ivars, size_t nelems, const int *status,
int cmp, TYPE *cmp_values);
int cmp, const TYPE *cmp_values);
\end{Csynopsis}
where \TYPE{} is one of the standard \ac{AMO} types and has a
corresponding \TYPENAME{} specified by Table~\ref{stdamotypes}.
Expand Down
4 changes: 2 additions & 2 deletions content/shmem_wait_until_some_vector.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

\begin{C11synopsis}
size_t @\FuncDecl{shmem\_wait\_until\_some\_vector}@(TYPE *ivars, size_t nelems, size_t *indices,
const int *status, int cmp, TYPE *cmp_values);
const int *status, int cmp, const TYPE *cmp_values);
\end{C11synopsis}
where \TYPE{} is one of the standard \ac{AMO} types specified by
Table \ref{stdamotypes}.

\begin{Csynopsis}
size_t @\FuncDecl{shmem\_\FuncParam{TYPENAME}\_wait\_until\_some\_vector}@(TYPE *ivars, size_t nelems, size_t *indices,
const int *status, int cmp, TYPE *cmp_values);
const int *status, int cmp, const TYPE *cmp_values);
\end{Csynopsis}
where \TYPE{} is one of the standard \ac{AMO} types and has a
corresponding \TYPENAME{} specified by Table~\ref{stdamotypes}.
Expand Down
Loading