mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 15:04:00 +00:00
- Revert winbase.h interlocked intrinsic change for now *sigh*
svn path=/trunk/; revision=42235
This commit is contained in:
parent
e0b7b058c3
commit
25aa6b6a41
1 changed files with 37 additions and 37 deletions
|
@ -1835,6 +1835,43 @@ VOID WINAPI InitializeSRWLock(PSRWLOCK);
|
||||||
#define InterlockedCompareExchangeAcquire64 InterlockedCompareExchange64
|
#define InterlockedCompareExchangeAcquire64 InterlockedCompareExchange64
|
||||||
#define InterlockedCompareExchangeRelease64 InterlockedCompareExchange64
|
#define InterlockedCompareExchangeRelease64 InterlockedCompareExchange64
|
||||||
|
|
||||||
|
#else // !(defined (_M_AMD64) || defined (_M_IA64))
|
||||||
|
|
||||||
|
LONG WINAPI InterlockedOr(IN OUT LONG volatile *,LONG);
|
||||||
|
LONG WINAPI InterlockedAnd(IN OUT LONG volatile *,LONG);
|
||||||
|
LONG WINAPI InterlockedCompareExchange(IN OUT LONG volatile *,LONG,LONG);
|
||||||
|
LONG WINAPI InterlockedDecrement(IN OUT LONG volatile *);
|
||||||
|
LONG WINAPI InterlockedExchange(IN OUT LONG volatile *,LONG);
|
||||||
|
#if defined(_WIN64)
|
||||||
|
/* PVOID WINAPI InterlockedExchangePointer(PVOID*,PVOID); */
|
||||||
|
#define InterlockedExchangePointer(t,v) \
|
||||||
|
(PVOID)_InterlockedExchange64((LONGLONG*)(t),(LONGLONG)(v))
|
||||||
|
/* PVOID WINAPI InterlockedCompareExchangePointer(PVOID*,PVOID,PVOID); */
|
||||||
|
#define InterlockedCompareExchangePointer(d,e,c) \
|
||||||
|
(PVOID)_InterlockedCompareExchange64((LONGLONG*)(d),(LONGLONG)(e),(LONGLONG)(c))
|
||||||
|
#else
|
||||||
|
/* PVOID WINAPI InterlockedExchangePointer(PVOID*,PVOID); */
|
||||||
|
#define InterlockedExchangePointer(t,v) \
|
||||||
|
(PVOID)InterlockedExchange((LPLONG)(t),(LONG)(v))
|
||||||
|
/* PVOID WINAPI InterlockedCompareExchangePointer(PVOID*,PVOID,PVOID); */
|
||||||
|
#define InterlockedCompareExchangePointer(d,e,c) \
|
||||||
|
(PVOID)InterlockedCompareExchange((LPLONG)(d),(LONG)(e),(LONG)(c))
|
||||||
|
#endif
|
||||||
|
LONG WINAPI InterlockedExchangeAdd(IN OUT LONG volatile *,LONG);
|
||||||
|
#if (_WIN32_WINNT >= 0x0501)
|
||||||
|
PSLIST_ENTRY WINAPI InterlockedFlushSList(PSLIST_HEADER);
|
||||||
|
#endif
|
||||||
|
LONG WINAPI InterlockedIncrement(IN OUT LONG volatile *);
|
||||||
|
#if (_WIN32_WINNT >= 0x0501)
|
||||||
|
PSLIST_ENTRY WINAPI InterlockedPopEntrySList(PSLIST_HEADER);
|
||||||
|
PSLIST_ENTRY WINAPI InterlockedPushEntrySList(PSLIST_HEADER,PSLIST_ENTRY);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // !(defined (_M_AMD64) || defined (_M_IA64))
|
||||||
|
|
||||||
|
VOID WINAPI InitializeSListHead(PSLIST_HEADER);
|
||||||
|
USHORT WINAPI QueryDepthSList(PSLIST_HEADER);
|
||||||
|
|
||||||
#if !defined(InterlockedAnd)
|
#if !defined(InterlockedAnd)
|
||||||
#define InterlockedAnd InterlockedAnd_Inline
|
#define InterlockedAnd InterlockedAnd_Inline
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
|
@ -1881,43 +1918,6 @@ InterlockedOr_Inline(IN OUT volatile LONG *Target,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else // !(defined (_M_AMD64) || defined (_M_IA64))
|
|
||||||
|
|
||||||
LONG WINAPI InterlockedOr(IN OUT LONG volatile *,LONG);
|
|
||||||
LONG WINAPI InterlockedAnd(IN OUT LONG volatile *,LONG);
|
|
||||||
LONG WINAPI InterlockedCompareExchange(IN OUT LONG volatile *,LONG,LONG);
|
|
||||||
LONG WINAPI InterlockedDecrement(IN OUT LONG volatile *);
|
|
||||||
LONG WINAPI InterlockedExchange(IN OUT LONG volatile *,LONG);
|
|
||||||
#if defined(_WIN64)
|
|
||||||
/* PVOID WINAPI InterlockedExchangePointer(PVOID*,PVOID); */
|
|
||||||
#define InterlockedExchangePointer(t,v) \
|
|
||||||
(PVOID)_InterlockedExchange64((LONGLONG*)(t),(LONGLONG)(v))
|
|
||||||
/* PVOID WINAPI InterlockedCompareExchangePointer(PVOID*,PVOID,PVOID); */
|
|
||||||
#define InterlockedCompareExchangePointer(d,e,c) \
|
|
||||||
(PVOID)_InterlockedCompareExchange64((LONGLONG*)(d),(LONGLONG)(e),(LONGLONG)(c))
|
|
||||||
#else
|
|
||||||
/* PVOID WINAPI InterlockedExchangePointer(PVOID*,PVOID); */
|
|
||||||
#define InterlockedExchangePointer(t,v) \
|
|
||||||
(PVOID)InterlockedExchange((LPLONG)(t),(LONG)(v))
|
|
||||||
/* PVOID WINAPI InterlockedCompareExchangePointer(PVOID*,PVOID,PVOID); */
|
|
||||||
#define InterlockedCompareExchangePointer(d,e,c) \
|
|
||||||
(PVOID)InterlockedCompareExchange((LPLONG)(d),(LONG)(e),(LONG)(c))
|
|
||||||
#endif
|
|
||||||
LONG WINAPI InterlockedExchangeAdd(IN OUT LONG volatile *,LONG);
|
|
||||||
#if (_WIN32_WINNT >= 0x0501)
|
|
||||||
PSLIST_ENTRY WINAPI InterlockedFlushSList(PSLIST_HEADER);
|
|
||||||
#endif
|
|
||||||
LONG WINAPI InterlockedIncrement(IN OUT LONG volatile *);
|
|
||||||
#if (_WIN32_WINNT >= 0x0501)
|
|
||||||
PSLIST_ENTRY WINAPI InterlockedPopEntrySList(PSLIST_HEADER);
|
|
||||||
PSLIST_ENTRY WINAPI InterlockedPushEntrySList(PSLIST_HEADER,PSLIST_ENTRY);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // !(defined (_M_AMD64) || defined (_M_IA64))
|
|
||||||
|
|
||||||
VOID WINAPI InitializeSListHead(PSLIST_HEADER);
|
|
||||||
USHORT WINAPI QueryDepthSList(PSLIST_HEADER);
|
|
||||||
|
|
||||||
#endif /* __INTERLOCKED_DECLARED */
|
#endif /* __INTERLOCKED_DECLARED */
|
||||||
|
|
||||||
BOOL WINAPI IsBadCodePtr(FARPROC);
|
BOOL WINAPI IsBadCodePtr(FARPROC);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue