Use unsigned types for the arguments of the atomic(9) operations,
like described in the man page and done on all other architectures. OK'ed by: tmm
This commit is contained in:
parent
979058d721
commit
c1ce4fbc90
@ -269,11 +269,11 @@ atomic_store_rel_ ## name(volatile ptype p, vtype v) \
|
||||
atomic_store_rel(p, v, sz); \
|
||||
}
|
||||
|
||||
ATOMIC_GEN(int, int *, int, int, 32);
|
||||
ATOMIC_GEN(32, int *, int, int, 32);
|
||||
ATOMIC_GEN(int, u_int *, u_int, u_int, 32);
|
||||
ATOMIC_GEN(32, uint32_t *, uint32_t, uint32_t, 32);
|
||||
|
||||
ATOMIC_GEN(long, long *, long, long, 64);
|
||||
ATOMIC_GEN(64, long *, long, long, 64);
|
||||
ATOMIC_GEN(long, u_long *, u_long, u_long, 64);
|
||||
ATOMIC_GEN(64, uint64_t *, uint64_t, uint64_t, 64);
|
||||
|
||||
ATOMIC_GEN(ptr, void *, void *, uintptr_t, 64);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user