File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
src/coreclr/nativeaot/Runtime/windows Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 4
4
#if defined(HOST_ARM64 )
5
5
#include <arm64intr.h>
6
6
#endif
7
- #define _INC_WINDOWS
8
7
#include <windows.h>
9
8
10
9
// Implementation of Redhawk PAL inline functions
@@ -56,8 +55,6 @@ FORCEINLINE uint8_t PalInterlockedCompareExchange128(_Inout_ int64_t volatile *p
56
55
}
57
56
#endif // HOST_AMD64
58
57
59
- #ifdef HOST_64BIT
60
-
61
58
FORCEINLINE void * PalInterlockedExchangePointer (_Inout_ void * volatile * pDst , _In_ void * pValue )
62
59
{
63
60
return InterlockedExchangePointer ((void * volatile * )pDst , pValue );
@@ -68,23 +65,11 @@ FORCEINLINE void * PalInterlockedCompareExchangePointer(_Inout_ void * volatile
68
65
return InterlockedCompareExchangePointer ((void * volatile * )pDst , pValue , pComparand );
69
66
}
70
67
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 ();
82
68
FORCEINLINE int PalGetLastError ()
83
69
{
84
70
return (int )GetLastError ();
85
71
}
86
72
87
- EXTERN_C __declspec(dllimport ) void __stdcall SetLastError (unsigned long error );
88
73
FORCEINLINE void PalSetLastError (int error )
89
74
{
90
75
SetLastError ((unsigned long )error );
You can’t perform that action at this time.
0 commit comments