Skip to content

Commit

Permalink
Merge pull request #7989 from billphipps/atomic_fence
Browse files Browse the repository at this point in the history
Update to use memory_order_seq_cst instead of GCC internal for C11
  • Loading branch information
bandi13 authored Sep 20, 2024
2 parents bbbc40d + 7122001 commit 005a57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wolfssl/wolfcrypt/wc_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
/* use user-supplied XFENCE definition. */
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
#include <stdatomic.h>
#define XFENCE() atomic_thread_fence(__ATOMIC_SEQ_CST)
#define XFENCE() atomic_thread_fence(memory_order_seq_cst)
#elif defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC__ < 5)
#define XFENCE() __sync_synchronize()
#elif (defined(__GNUC__) && (__GNUC__ >= 5)) || defined (__clang__)
Expand Down

0 comments on commit 005a57f

Please sign in to comment.