Skip to content

Commit 420e57f

Browse files
authored
Fix font style for some atomic argument references (#776)
1 parent 9cfd7d7 commit 420e57f

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

OpenCL_C.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7023,11 +7023,11 @@ C atomic_exchange_explicit(volatile A *object,
70237023
memory_scope scope)
70247024
----------
70257025

7026-
Atomically replace the value pointed to by object with desired.
7027-
Memory is affected according to the value of order.
7026+
Atomically replace the value pointed to by `object` with `desired`.
7027+
Memory is affected according to the value of `order`.
70287028
These operations are read-modify-write operations (as defined by
70297029
<<C11-spec,section 5.1.2.4 of the C11 Specification>>).
7030-
Atomically returns the value pointed to by object immediately before the
7030+
Atomically returns the value pointed to by `object` immediately before the
70317031
effects.
70327032

70337033
NOTE: The non-explicit `atomic_exchange` function <<unified-spec, requires>>
@@ -7317,8 +7317,8 @@ bool atomic_compare_exchange_weak_explicit(
73177317
The `failure` argument shall not be `memory_order_release` nor
73187318
`memory_order_acq_rel`.
73197319
The `failure` argument shall be no stronger than the `success` argument.
7320-
Atomically, compares the value pointed to by object for equality with that
7321-
in expected, and if _true_, replaces the value pointed to by `object` with
7320+
Atomically, compares the value pointed to by `object` for equality with that
7321+
in `expected`, and if _true_, replaces the value pointed to by `object` with
73227322
`desired`, and if _false_, updates the value in `expected` with the value
73237323
pointed to by `object`.
73247324
Further, if the comparison is _true_, memory is affected according to the
@@ -7440,7 +7440,7 @@ C atomic_fetch_key_explicit(volatile A *object,
74407440
memory_scope scope)
74417441
----------
74427442

7443-
Atomically replaces the value pointed to by object with the result of the
7443+
Atomically replaces the value pointed to by `object` with the result of the
74447444
computation applied to the value pointed to by `object` and the given
74457445
operand.
74467446
Memory is affected according to the value of `order`.
@@ -7623,8 +7623,8 @@ void atomic_flag_clear_explicit(
76237623

76247624
The `order` argument shall not be `memory_order_acquire` nor
76257625
`memory_order_acq_rel`.
7626-
Atomically sets the value pointed to by object to false.
7627-
Memory is affected according to the value of order.
7626+
Atomically sets the value pointed to by `object` to _false_.
7627+
Memory is affected according to the value of `order`.
76287628

76297629
NOTE: The non-explicit `atomic_flag_clear` function <<unified-spec, requires>>
76307630
support for OpenCL C 2.0, or OpenCL C 3.0 or newer and both the

0 commit comments

Comments
 (0)