Lines Matching defs:compare_value

193 inline jint     Atomic::cmpxchg    (jint     exchange_value, volatile jint*     dest, jint     compare_value) {
198 : "0" (exchange_value), "r" (dest), "r" (compare_value)
203 inline jlong Atomic::cmpxchg (jlong exchange_value, volatile jlong* dest, jlong compare_value) {
209 : "0" (exchange_value), "r" (dest), "r" (compare_value)
216 cvl.long_value = compare_value;
236 inline intptr_t Atomic::cmpxchg_ptr(intptr_t exchange_value, volatile intptr_t* dest, intptr_t compare_value) {
242 : "0" (exchange_value), "r" (dest), "r" (compare_value)
248 : "0" (exchange_value), "r" (dest), "r" (compare_value)
254 inline void* Atomic::cmpxchg_ptr(void* exchange_value, volatile void* dest, void* compare_value) {
255 return (void*)cmpxchg_ptr((intptr_t)exchange_value, (volatile intptr_t*)dest, (intptr_t)compare_value);
271 extern "C" jint _Atomic_cas32(jint exchange_value, volatile jint* dest, jint compare_value);
272 extern "C" intptr_t _Atomic_cas64(intptr_t exchange_value, volatile intptr_t* dest, intptr_t compare_value);
273 extern "C" jlong _Atomic_casl (jlong exchange_value, volatile jlong* dest, jlong compare_value);
313 inline jint Atomic::cmpxchg (jint exchange_value, volatile jint* dest, jint compare_value) {
314 return _Atomic_cas32(exchange_value, dest, compare_value);
317 inline jlong Atomic::cmpxchg (jlong exchange_value, volatile jlong* dest, jlong compare_value) {
320 return _Atomic_cas64((intptr_t)exchange_value, (intptr_t *)dest, (intptr_t)compare_value);
324 return _Atomic_casl(exchange_value, dest, compare_value);
328 inline intptr_t Atomic::cmpxchg_ptr(intptr_t exchange_value, volatile intptr_t* dest, intptr_t compare_value) {
330 return _Atomic_cas64(exchange_value, dest, compare_value);
332 return _Atomic_cas32(exchange_value, dest, compare_value);
336 inline void* Atomic::cmpxchg_ptr(void* exchange_value, volatile void* dest, void* compare_value) {
337 return (void*)cmpxchg_ptr((intptr_t)exchange_value, (volatile intptr_t*)dest, (intptr_t)compare_value);
372 inline jint Atomic::cmpxchg (jint exchange_value, volatile jint* dest, jint compare_value) {
373 return (*os::atomic_cmpxchg_func)(exchange_value, dest, compare_value);
376 inline jlong Atomic::cmpxchg (jlong exchange_value, volatile jlong* dest, jlong compare_value) {
377 return (*os::atomic_cmpxchg_long_func)(exchange_value, dest, compare_value);
380 inline intptr_t Atomic::cmpxchg_ptr(intptr_t exchange_value, volatile intptr_t* dest, intptr_t compare_value) {
381 return (intptr_t)cmpxchg((jint)exchange_value, (volatile jint*)dest, (jint)compare_value);
384 inline void* Atomic::cmpxchg_ptr(void* exchange_value, volatile void* dest, void* compare_value) {
385 return (void*)cmpxchg((jint)exchange_value, (volatile jint*)dest, (jint)compare_value);