mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
980284e38f
commit
c9407be9ec
1 changed files with 4 additions and 4 deletions
|
|
@ -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 a new issue