mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
[NTOSKRNL] Implement InterlockedExchangeSizeT macro
This commit is contained in:
parent
47f6745bcd
commit
47cb3c20a3
1 changed files with 8 additions and 0 deletions
|
@ -1537,6 +1537,14 @@ XIPInit(
|
|||
#define InterlockedCompareExchangeSizeT(Destination, Exchange, Comperand) \
|
||||
(SIZE_T)InterlockedCompareExchangePointer((PVOID*)(Destination), (PVOID)(SIZE_T)(Exchange), (PVOID)(SIZE_T)(Comperand))
|
||||
|
||||
#ifdef _WIN64
|
||||
#define InterlockedExchangeSizeT(Target, Value) \
|
||||
(SIZE_T)InterlockedExchange64((PLONG64)Target, (LONG64)Value)
|
||||
#else
|
||||
#define InterlockedExchangeSizeT(Target, Value) \
|
||||
(SIZE_T)InterlockedExchange((PLONG)Target, (LONG)Value)
|
||||
#endif
|
||||
|
||||
#define ExfInterlockedCompareExchange64UL(Destination, Exchange, Comperand) \
|
||||
(ULONGLONG)ExfInterlockedCompareExchange64((PLONGLONG)(Destination), (PLONGLONG)(Exchange), (PLONGLONG)(Comperand))
|
||||
|
||||
|
|
Loading…
Reference in a new issue