Lines Matching refs:_v
42 #define p_atomic_set(_v, _i) __atomic_store_n((_v), (_i), __ATOMIC_RELEASE) argument
43 #define p_atomic_read(_v) __atomic_load_n((_v), __ATOMIC_ACQUIRE) argument
53 #define p_atomic_set(_v, _i) (*(_v) = (_i)) argument
54 #define p_atomic_read(_v) (*(_v)) argument
82 #define p_atomic_set(_v, _i) (*(_v) = (_i)) argument
83 #define p_atomic_read(_v) (*(_v)) argument
84 #define p_atomic_dec_zero(_v) (p_atomic_dec_return(_v) == 0) argument
85 #define p_atomic_inc(_v) ((void) p_atomic_inc_return(_v)) argument
86 #define p_atomic_dec(_v) ((void) p_atomic_dec_return(_v)) argument
87 #define p_atomic_add(_v, _i) (*(_v) = *(_v) + (_i)) argument
88 #define p_atomic_inc_return(_v) (++(*(_v))) argument
89 #define p_atomic_dec_return(_v) (--(*(_v))) argument
90 #define p_atomic_cmpxchg(_v, _old, _new) (*(_v) == (_old) ? (*(_v) = (_new), (_old)) : *(_v)) argument
118 #define p_atomic_set(_v, _i) (*(_v) = (_i)) argument
119 #define p_atomic_read(_v) (*(_v)) argument
121 #define p_atomic_dec_zero(_v) \ argument
122 (p_atomic_dec_return(_v) == 0)
124 #define p_atomic_inc(_v) \ argument
125 ((void) p_atomic_inc_return(_v))
127 #define p_atomic_inc_return(_v) (\ argument
128 sizeof *(_v) == sizeof(short) ? _InterlockedIncrement16((short *) (_v)) : \
129 sizeof *(_v) == sizeof(long) ? _InterlockedIncrement ((long *) (_v)) : \
130 sizeof *(_v) == sizeof(__int64) ? InterlockedIncrement64 ((__int64 *)(_v)) : \
133 #define p_atomic_dec(_v) \ argument
134 ((void) p_atomic_dec_return(_v))
136 #define p_atomic_dec_return(_v) (\ argument
137 sizeof *(_v) == sizeof(short) ? _InterlockedDecrement16((short *) (_v)) : \
138 sizeof *(_v) == sizeof(long) ? _InterlockedDecrement ((long *) (_v)) : \
139 sizeof *(_v) == sizeof(__int64) ? InterlockedDecrement64 ((__int64 *)(_v)) : \
142 #define p_atomic_add(_v, _i) (\ argument
143 sizeof *(_v) == sizeof(char) ? _InterlockedExchangeAdd8 ((char *) (_v), (_i)) : \
144 sizeof *(_v) == sizeof(short) ? _InterlockedExchangeAdd16((short *) (_v), (_i)) : \
145 sizeof *(_v) == sizeof(long) ? _InterlockedExchangeAdd ((long *) (_v), (_i)) : \
146 sizeof *(_v) == sizeof(__int64) ? InterlockedExchangeAdd64((__int64 *)(_v), (_i)) : \
149 #define p_atomic_cmpxchg(_v, _old, _new) (\ argument
150 …sizeof *(_v) == sizeof(char) ? _InterlockedCompareExchange8 ((char *) (_v), (char) (_new), …
151 …sizeof *(_v) == sizeof(short) ? _InterlockedCompareExchange16((short *) (_v), (short) (_new), …
152 …sizeof *(_v) == sizeof(long) ? _InterlockedCompareExchange ((long *) (_v), (long) (_new), …
153 …sizeof *(_v) == sizeof(__int64) ? InterlockedCompareExchange64 ((__int64 *)(_v), (__int64)(_new), …
165 #define p_atomic_set(_v, _i) (*(_v) = (_i)) argument
166 #define p_atomic_read(_v) (*(_v)) argument