Skip to content

Commit 924bf71

Browse files
Wilco1Wilco Dijkstra
andauthored
[atomicsabi64] Add _Atomic types (#353)
Define size/alignment of _Atomic types. Define atomic_is_lock_free result. --------- Co-authored-by: Wilco Dijkstra <[email protected]>
1 parent a2497e3 commit 924bf71

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

atomicsabi64/atomicsabi64.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,15 @@ Suggestions and improvements to this specification may be submitted to the:
379379
`issue tracker page on GitHub <https://github.com/ARM-software/abi-aa/issues>`_.
380380

381381

382+
Atomic types
383+
============
384+
385+
``_Atomic`` struct types types with size less than 16 bytes must be padded to the nearest power
386+
of 2. Their alignment must be the same as their size so that they can be used by atomic instructions.
387+
388+
``atomic_is_lock_free`` must return ``true`` for all ``_Atomic`` objects with size less than or equal
389+
to 16 bytes, and ``false`` otherwise.
390+
382391

383392
AArch64 atomic mappings
384393
=======================

0 commit comments

Comments
 (0)