/* _Atomic_exchange_2 */ static _Uint2_t _Exchange_seq_cst_2( volatile _Uint2_t *_Tgt, _Uint2_t _Value) { /* exchange _Value and *_Tgt atomically with sequentially consistent memory order */ _Value = _InterlockedExchange16((volatile short *)_Tgt, _Value); return (_Value); }
short test_InterlockedExchange16(short volatile *value, short mask) { return _InterlockedExchange16(value, mask); }
static void _Store_seq_cst_2(volatile _Uint2_t *_Tgt, _Uint2_t _Value) { /* store _Value atomically with sequentially consistent memory order */ _InterlockedExchange16((volatile short *)_Tgt, _Value); }