Lines Matching refs:_v

43 #define p_atomic_set(_v, _i) __atomic_store_n((_v), (_i), __ATOMIC_RELEASE)  argument
44 #define p_atomic_read(_v) __atomic_load_n((_v), __ATOMIC_ACQUIRE) argument
56 #define p_atomic_set(_v, _i) (*(_v) = (_i)) argument
57 #define p_atomic_read(_v) (*(_v)) argument
85 #define p_atomic_set(_v, _i) (*(_v) = (_i)) argument
86 #define p_atomic_read(_v) (*(_v)) argument
87 #define p_atomic_dec_zero(_v) (p_atomic_dec_return(_v) == 0) argument
88 #define p_atomic_inc(_v) ((void) p_atomic_inc_return(_v)) argument
89 #define p_atomic_dec(_v) ((void) p_atomic_dec_return(_v)) argument
90 #define p_atomic_add(_v, _i) (*(_v) = *(_v) + (_i)) argument
91 #define p_atomic_inc_return(_v) (++(*(_v))) argument
92 #define p_atomic_dec_return(_v) (--(*(_v))) argument
93 #define p_atomic_cmpxchg(_v, _old, _new) (*(_v) == (_old) ? (*(_v) = (_new), (_old)) : *(_v)) argument
121 #define p_atomic_set(_v, _i) (*(_v) = (_i)) argument
122 #define p_atomic_read(_v) (*(_v)) argument
124 #define p_atomic_dec_zero(_v) \ argument
125 (p_atomic_dec_return(_v) == 0)
127 #define p_atomic_inc(_v) \ argument
128 ((void) p_atomic_inc_return(_v))
130 #define p_atomic_inc_return(_v) (\ argument
131 sizeof *(_v) == sizeof(short) ? _InterlockedIncrement16((short *) (_v)) : \
132 sizeof *(_v) == sizeof(long) ? _InterlockedIncrement ((long *) (_v)) : \
133 sizeof *(_v) == sizeof(__int64) ? InterlockedIncrement64 ((__int64 *)(_v)) : \
136 #define p_atomic_dec(_v) \ argument
137 ((void) p_atomic_dec_return(_v))
139 #define p_atomic_dec_return(_v) (\ argument
140 sizeof *(_v) == sizeof(short) ? _InterlockedDecrement16((short *) (_v)) : \
141 sizeof *(_v) == sizeof(long) ? _InterlockedDecrement ((long *) (_v)) : \
142 sizeof *(_v) == sizeof(__int64) ? InterlockedDecrement64 ((__int64 *)(_v)) : \
145 #define p_atomic_add(_v, _i) (\ argument
146 sizeof *(_v) == sizeof(char) ? _InterlockedExchangeAdd8 ((char *) (_v), (_i)) : \
147 sizeof *(_v) == sizeof(short) ? _InterlockedExchangeAdd16((short *) (_v), (_i)) : \
148 sizeof *(_v) == sizeof(long) ? _InterlockedExchangeAdd ((long *) (_v), (_i)) : \
149 sizeof *(_v) == sizeof(__int64) ? InterlockedExchangeAdd64((__int64 *)(_v), (_i)) : \
152 #define p_atomic_cmpxchg(_v, _old, _new) (\ argument
153 …sizeof *(_v) == sizeof(char) ? _InterlockedCompareExchange8 ((char *) (_v), (char) (_new), …
154 …sizeof *(_v) == sizeof(short) ? _InterlockedCompareExchange16((short *) (_v), (short) (_new), …
155 …sizeof *(_v) == sizeof(long) ? _InterlockedCompareExchange ((long *) (_v), (long) (_new), …
156 …sizeof *(_v) == sizeof(__int64) ? InterlockedCompareExchange64 ((__int64 *)(_v), (__int64)(_new), …
168 #define p_atomic_set(_v, _i) (*(_v) = (_i)) argument
169 #define p_atomic_read(_v) (*(_v)) argument