return __sync_swap(Target, Value);
}
-int32_t FastInterlockCompareExchange(int32_t volatile *Destination, int32_t Exchange, int32_t Comperand)
+int32_t FastInterlockCompareExchange(int32_t volatile *Destination, int32_t Exchange, int32_t Comparand)
{
- return __sync_val_compare_and_swap(Destination, Comperand, Exchange);
+ return __sync_val_compare_and_swap(Destination, Comparand, Exchange);
}
int32_t FastInterlockExchangeAdd(int32_t volatile *Addend, int32_t Value)
return __sync_swap(Target, Value);
}
-void * _FastInterlockCompareExchangePointer(void * volatile *Destination, void * Exchange, void * Comperand)
+void * _FastInterlockCompareExchangePointer(void * volatile *Destination, void * Exchange, void * Comparand)
{
- return __sync_val_compare_and_swap(Destination, Comperand, Exchange);
+ return __sync_val_compare_and_swap(Destination, Comparand, Exchange);
}
void FastInterlockOr(uint32_t volatile *p, uint32_t msk)