Skip to content

Commit af5ceaa

Browse files
author
Eduardo Manuel Velarde Polar
committed
PR comments
1 parent f075b73 commit af5ceaa

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/coreclr/nativeaot/Runtime/windows/PalRedhawkInline.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#if defined(HOST_ARM64)
55
#include <arm64intr.h>
66
#endif
7-
#define _INC_WINDOWS
87
#include <windows.h>
98

109
// Implementation of Redhawk PAL inline functions
@@ -56,8 +55,6 @@ FORCEINLINE uint8_t PalInterlockedCompareExchange128(_Inout_ int64_t volatile *p
5655
}
5756
#endif // HOST_AMD64
5857

59-
#ifdef HOST_64BIT
60-
6158
FORCEINLINE void * PalInterlockedExchangePointer(_Inout_ void * volatile *pDst, _In_ void *pValue)
6259
{
6360
return InterlockedExchangePointer((void * volatile *)pDst, pValue);
@@ -68,23 +65,11 @@ FORCEINLINE void * PalInterlockedCompareExchangePointer(_Inout_ void * volatile
6865
return InterlockedCompareExchangePointer((void * volatile *)pDst, pValue, pComparand);
6966
}
7067

71-
#else // HOST_64BIT
72-
73-
#define PalInterlockedExchangePointer(_pDst, _pValue) \
74-
((void *)InterlockedExchange((long volatile *)(_pDst), (long)(size_t)(_pValue)))
75-
76-
#define PalInterlockedCompareExchangePointer(_pDst, _pValue, _pComparand) \
77-
((void *)InterlockedCompareExchange((long volatile *)(_pDst), (long)(size_t)(_pValue), (long)(size_t)(_pComparand)))
78-
79-
#endif // HOST_64BIT
80-
81-
EXTERN_C __declspec(dllimport) unsigned long __stdcall GetLastError();
8268
FORCEINLINE int PalGetLastError()
8369
{
8470
return (int)GetLastError();
8571
}
8672

87-
EXTERN_C __declspec(dllimport) void __stdcall SetLastError(unsigned long error);
8873
FORCEINLINE void PalSetLastError(int error)
8974
{
9075
SetLastError((unsigned long)error);

0 commit comments

Comments
 (0)