Skip to content
Snippets Groups Projects

Draft: Refactor librist

Closed Gijs Peskens requested to merge refactor_librist into master
Compare and
45 files
+ 3665
6861
Compare changes
  • Side-by-side
  • Inline
Files
45
+ 5
1
@@ -26,12 +26,15 @@
#ifndef GCCVER_STDATOMIC_H_
#define GCCVER_STDATOMIC_H_
#include <stdint.h>
#include <stdbool.h>
#if !defined(__cplusplus)
typedef int atomic_int;
typedef unsigned int atomic_uint;
typedef unsigned long atomic_ulong;
typedef uint_least32_t atomic_uint_least32_t;
typedef
#define memory_order_relaxed __ATOMIC_RELAXED
#define memory_order_acquire __ATOMIC_ACQUIRE
@@ -46,6 +49,7 @@ typedef unsigned long atomic_ulong;
#define atomic_fetch_add_explicit(p_a, inc, mo) __atomic_fetch_add(p_a, inc, mo)
#define atomic_fetch_sub(p_a, dec) __atomic_fetch_sub(p_a, dec, __ATOMIC_SEQ_CST)
#define atomic_fetch_sub_explicit(p_a, dec, mo) __atomic_fetch_sub(p_a, dec, mo)
#define atomic_compare_exchange_weak(p_a, expected, desired ) __atomic_compare_exchange_n(p_a, expected, desired, true, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)
#endif /* !defined(__cplusplus) */
Loading