|
37 | 37 | C_MODE_START |
38 | 38 | /*Visual Studio 2003 and earlier do not have prototypes for atomic intrinsics*/ |
39 | 39 | LONG _InterlockedExchange (LONG volatile *Target,LONG Value); |
40 | | -LONGLONG _InterlockedExchange64 (LONGLONG volatile *Target,LONGLONG Value); |
41 | | -LONG _InterlockedCompareExchange (LONG volatile *Target, |
42 | | - LONG Value, LONG Comp); |
43 | | -LONGLONG _InterlockedCompareExchange64 (LONGLONG volatile *Target, |
44 | | - LONGLONG Value, LONGLONG Comp); |
| 40 | +LONG _InterlockedCompareExchange (LONG volatile *Target, LONG Value, LONG Comp); |
45 | 41 | LONG _InterlockedExchangeAdd (LONG volatile *Addend, LONG Value); |
46 | | -LONGLONG _InterlockedExchangeAdd64 (LONGLONG volatile *Addend, LONGLONG Value); |
47 | 42 | C_MODE_END |
48 | 43 |
|
49 | 44 | #pragma intrinsic(_InterlockedExchangeAdd) |
50 | 45 | #pragma intrinsic(_InterlockedCompareExchange) |
51 | 46 | #pragma intrinsic(_InterlockedExchange) |
52 | | -#pragma intrinsic(_InterlockedExchangeAdd64) |
53 | | -#pragma intrinsic(_InterlockedCompareExchange64) |
54 | | -#pragma intrinsic(_InterlockedExchange64) |
55 | 47 | #endif |
56 | 48 |
|
57 | 49 | #define InterlockedExchange _InterlockedExchange |
58 | 50 | #define InterlockedExchangeAdd _InterlockedExchangeAdd |
59 | 51 | #define InterlockedCompareExchange _InterlockedCompareExchange |
60 | | -#define InterlockedExchange64 _InterlockedExchange64 |
61 | | -#define InterlockedExchangeAdd64 _InterlockedExchangeAdd64 |
62 | | -#define InterlockedCompareExchange64 _InterlockedCompareExchange64 |
63 | 52 | /* |
64 | 53 | No need to do something special for InterlockedCompareExchangePointer |
65 | 54 | as it is a #define to InterlockedCompareExchange. The same applies to |
|
0 commit comments