Lines Matching defs:__val
48 inline _LIBCPP_HIDE_FROM_ABI void __libcpp_atomic_store(_ValueType* __dest, _FromType __val, int __order = _AO_Seq) {
49 __atomic_store_n(__dest, __val, __order);
53 inline _LIBCPP_HIDE_FROM_ABI void __libcpp_relaxed_store(_ValueType* __dest, _FromType __val) {
54 __atomic_store_n(__dest, __val, _AO_Relaxed);
58 inline _LIBCPP_HIDE_FROM_ABI _ValueType __libcpp_atomic_load(_ValueType const* __val, int __order = _AO_Seq) {
59 return __atomic_load_n(__val, __order);
63 inline _LIBCPP_HIDE_FROM_ABI _ValueType __libcpp_atomic_add(_ValueType* __val, _AddType __a, int __order = _AO_Seq) {
64 return __atomic_add_fetch(__val, __a, __order);
75 _ValueType* __val,
80 return __atomic_compare_exchange_n(__val, __expected, __after, true, __success_order, __fail_order);
88 inline _LIBCPP_HIDE_FROM_ABI void __libcpp_atomic_store(_ValueType* __dest, _FromType __val, int = 0) {
89 *__dest = __val;
93 inline _LIBCPP_HIDE_FROM_ABI void __libcpp_relaxed_store(_ValueType* __dest, _FromType __val) {
94 *__dest = __val;
98 inline _LIBCPP_HIDE_FROM_ABI _ValueType __libcpp_atomic_load(_ValueType const* __val, int = 0) {
99 return *__val;
103 inline _LIBCPP_HIDE_FROM_ABI _ValueType __libcpp_atomic_add(_ValueType* __val, _AddType __a, int = 0) {
104 return *__val += __a;
117 __libcpp_atomic_compare_exchange(_ValueType* __val, _ValueType* __expected, _ValueType __after, int = 0, int = 0) {
118 if (*__val == *__expected) {
119 *__val = __after;
122 *__expected = *__val;