| 40 | __builtin_prefetch(static_cast<char const*>(ptr)); |
| 41 | } |
| 42 | FORCE_INLINE static int64 InterlockedExchange(int64 volatile* dst, int64 exchange) |
| 43 | { |
| 44 | return __sync_lock_test_and_set(dst, exchange); |
| 45 | } |
| 46 | FORCE_INLINE static int32 InterlockedCompareExchange(int32 volatile* dst, int32 exchange, int32 comperand) |
| 47 | { |
| 48 | return __sync_val_compare_and_swap(dst, comperand, exchange); |
no outgoing calls
no test coverage detected