musl/arch/wasm32/atomic_arch.h

12 lines
188 B
C
Raw Normal View History

2016-01-28 11:05:27 -08:00
#ifndef __NR_restart_syscall
#include <syscall.h>
2016-01-28 11:05:27 -08:00
#endif
#include <stdlib.h>
2016-01-28 11:05:27 -08:00
#define a_barrier() syscall(__NR_membarrier)
#define a_cas(p, t, s) (abort(), s)
#define a_crash() abort()