Browse Source

Fix a_store operation in atomic.h (#403)

pull/404/head wasi-sdk-20
Wenyong Huang 2 years ago
committed by GitHub
parent
commit
1dfe5c302d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      libc-top-half/musl/arch/wasm32/atomic_arch.h

1
libc-top-half/musl/arch/wasm32/atomic_arch.h

@ -1,4 +1,3 @@
#define a_barrier() (__sync_synchronize())
#define a_cas(p, t, s) (__sync_val_compare_and_swap((p), (t), (s))) #define a_cas(p, t, s) (__sync_val_compare_and_swap((p), (t), (s)))
#define a_crash() (__builtin_trap()) #define a_crash() (__builtin_trap())
#define a_clz_32 __builtin_clz #define a_clz_32 __builtin_clz

Loading…
Cancel
Save