Esempio n. 1
0
	/* _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);
	}
Esempio n. 2
0
short test_InterlockedExchange16(short volatile *value, short mask) {
  return _InterlockedExchange16(value, mask);
}
Esempio n. 3
0
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);
	}