Exemplo n.º 1
0
	/* _Atomic_fetch_or_1 */
_Uint1_t _Fetch_or_seq_cst_1(volatile _Uint1_t *_Tgt, _Uint1_t _Value)
	{	/* or _Value with *_Tgt atomically with
			sequentially consistent memory order */
	_Value = _InterlockedOr8((volatile char *)_Tgt, _Value);

	return (_Value);
	}
Exemplo n.º 2
0
	/* _Atomic_load_1 */
static _Uint1_t _Load_seq_cst_1(volatile _Uint1_t *_Tgt)
	{	/* load from *_Tgt atomically with
			sequentially consistent memory order */
	_Uint1_t _Value;
	_Value = _InterlockedOr8((volatile char *)_Tgt, 0);

	return (_Value);
	}
Exemplo n.º 3
0
char test_InterlockedOr8(char volatile *value, char mask) {
  return _InterlockedOr8(value, mask);
}
Exemplo n.º 4
0
Int8 KInterlockedOr8(Int8 volatile* var, Int8 add)
{
    return _InterlockedOr8((volatile char*)var, add);
}