From 1ae71a66576028eddf532c574c77e12c193eeebc Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 21 Apr 2022 19:11:41 -0400 Subject: add prototypes for stdatomic --- src/stdatomic/atomic_exchange_explicit.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/stdatomic/atomic_exchange_explicit.c (limited to 'src/stdatomic/atomic_exchange_explicit.c') diff --git a/src/stdatomic/atomic_exchange_explicit.c b/src/stdatomic/atomic_exchange_explicit.c new file mode 100644 index 00000000..392f5ee9 --- /dev/null +++ b/src/stdatomic/atomic_exchange_explicit.c @@ -0,0 +1,11 @@ +#include + +__BASE atomic_exchange_explicit(volatile __TYPE *object, __BASE desired, memory_order order) +{ + switch (order) { + default: + break; + } + + return *object = desired; +} -- cgit v1.2.1