Esempio n. 1
0
	/* _Atomic_fetch_add_1, _Atomic_fetch_sub_1 */
static _Uint1_t _Fetch_add_seq_cst_1(volatile _Uint1_t *_Tgt, _Uint1_t _Value)
	{	/* add _Value to *_Tgt atomically with
			sequentially consistent memory order */
	_Value = _InterlockedExchangeAdd8((volatile char *)_Tgt, _Value);

	return (_Value);
	}
Esempio n. 2
0
char test_InterlockedExchangeAdd8(char volatile *value, char mask) {
  return _InterlockedExchangeAdd8(value, mask);
}