jimn
11/18/2021, 12:08 PM/* This is x86 specific
#define read_barrier() __asm__ __volatile__("":::"memory")
#define write_barrier() __asm__ __volatile__("":::"memory") */
static inline void read_barrier() { __asm__ __volatile__("" ::: "memory") ;}
static inline void write_barrier() { __asm__ __volatile__("" ::: "memory"); }
where the macros don't appear as symbols I can call but the inline functions do.
Given the intent, does the obj reproduce the asm membarriers faithfully here?