@@ -60,17 +60,17 @@ BEGIN_EXTERN_C()
60
60
#define ZEND_ATOMIC_BOOL_INIT (obj , desired ) ((obj)->value = (desired))
61
61
62
62
static zend_always_inline bool zend_atomic_bool_exchange_ex (zend_atomic_bool * obj , bool desired ) {
63
- return InterlockedExchange8 (& obj -> value , desired );
63
+ return _InterlockedExchange8 (& obj -> value , desired );
64
64
}
65
65
66
66
/* On this platform it is non-const due to Iterlocked API*/
67
- static zend_always_inline bool zend_atomic_bool_load_ex (zend_atomic_bool * obj ) {
67
+ static zend_always_inline bool zend_atomic_bool_load_ex (const zend_atomic_bool * obj ) {
68
68
/* Or'ing with false won't change the value. */
69
- return InterlockedOr8 (& obj -> value , false);
69
+ return _InterlockedOr8 (& obj -> value , false);
70
70
}
71
71
72
72
static zend_always_inline void zend_atomic_bool_store_ex (zend_atomic_bool * obj , bool desired ) {
73
- (void )InterlockedExchange8 (& obj -> value , desired );
73
+ (void )_InterlockedExchange8 (& obj -> value , desired );
74
74
}
75
75
76
76
#elif HAVE_C11_ATOMICS
@@ -123,7 +123,7 @@ static zend_always_inline bool zend_atomic_bool_exchange_ex(zend_atomic_bool *ob
123
123
return prev ;
124
124
}
125
125
126
- static zend_always_inline bool zend_atomic_bool_load_ex (zend_atomic_bool * obj ) {
126
+ static zend_always_inline bool zend_atomic_bool_load_ex (const zend_atomic_bool * obj ) {
127
127
/* Or'ing false won't change the value */
128
128
return __sync_fetch_and_or (& obj -> value , false);
129
129
}
0 commit comments