diff options
Diffstat (limited to 'src/vppinfra/atomics.h')
-rw-r--r-- | src/vppinfra/atomics.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vppinfra/atomics.h b/src/vppinfra/atomics.h index ce2177df5c2..d6616a94ba3 100644 --- a/src/vppinfra/atomics.h +++ b/src/vppinfra/atomics.h @@ -54,4 +54,7 @@ #define clib_atomic_fetch_add_rel(a, b) __atomic_fetch_add((a), (b), __ATOMIC_RELEASE) #define clib_atomic_fetch_sub_rel(a, b) __atomic_fetch_sub((a), (b), __ATOMIC_RELEASE) +#define clib_atomic_fetch_add_relax(a, b) __atomic_fetch_add((a), (b), __ATOMIC_RELAXED) +#define clib_atomic_fetch_sub_relax(a, b) __atomic_fetch_sub((a), (b), __ATOMIC_RELAXED) + #endif /* included_clib_atomics_h */ |