Lines Matching defs:dest

35 inline void Atomic::store    (jbyte    store_value, jbyte*    dest) { *dest = store_value; }
36 inline void Atomic::store (jshort store_value, jshort* dest) { *dest = store_value; }
37 inline void Atomic::store (jint store_value, jint* dest) { *dest = store_value; }
38 inline void Atomic::store_ptr(intptr_t store_value, intptr_t* dest) { *dest = store_value; }
39 inline void Atomic::store_ptr(void* store_value, void* dest) { *(void**)dest = store_value; }
41 inline void Atomic::store (jbyte store_value, volatile jbyte* dest) { *dest = store_value; }
42 inline void Atomic::store (jshort store_value, volatile jshort* dest) { *dest = store_value; }
43 inline void Atomic::store (jint store_value, volatile jint* dest) { *dest = store_value; }
44 inline void Atomic::store_ptr(intptr_t store_value, volatile intptr_t* dest) { *dest = store_value; }
45 inline void Atomic::store_ptr(void* store_value, volatile void* dest) { *(void* volatile *)dest = store_value; }
51 inline jint Atomic::add (jint add_value, volatile jint* dest) {
56 : "0" (addend), "r" (dest), "r" (mp)
61 inline void Atomic::inc (volatile jint* dest) {
64 : "r" (dest), "r" (mp) : "cc", "memory");
67 inline void Atomic::inc_ptr(volatile void* dest) {
68 inc_ptr((volatile intptr_t*)dest);
71 inline void Atomic::dec (volatile jint* dest) {
74 : "r" (dest), "r" (mp) : "cc", "memory");
77 inline void Atomic::dec_ptr(volatile void* dest) {
78 dec_ptr((volatile intptr_t*)dest);
81 inline jint Atomic::xchg (jint exchange_value, volatile jint* dest) {
84 : "0" (exchange_value), "r" (dest)
89 inline void* Atomic::xchg_ptr(void* exchange_value, volatile void* dest) {
90 return (void*)xchg_ptr((intptr_t)exchange_value, (volatile intptr_t*)dest);
94 inline jint Atomic::cmpxchg (jint exchange_value, volatile jint* dest, jint compare_value) {
98 : "r" (exchange_value), "a" (compare_value), "r" (dest), "r" (mp)
104 inline void Atomic::store (jlong store_value, jlong* dest) { *dest = store_value; }
105 inline void Atomic::store (jlong store_value, volatile jlong* dest) { *dest = store_value; }
107 inline intptr_t Atomic::add_ptr(intptr_t add_value, volatile intptr_t* dest) {
112 : "0" (addend), "r" (dest), "r" (mp)
117 inline void* Atomic::add_ptr(intptr_t add_value, volatile void* dest) {
118 return (void*)add_ptr(add_value, (volatile intptr_t*)dest);
121 inline void Atomic::inc_ptr(volatile intptr_t* dest) {
125 : "r" (dest), "r" (mp)
129 inline void Atomic::dec_ptr(volatile intptr_t* dest) {
133 : "r" (dest), "r" (mp)
137 inline intptr_t Atomic::xchg_ptr(intptr_t exchange_value, volatile intptr_t* dest) {
140 : "0" (exchange_value), "r" (dest)
145 inline jlong Atomic::cmpxchg (jlong exchange_value, volatile jlong* dest, jlong compare_value) {
149 : "r" (exchange_value), "a" (compare_value), "r" (dest), "r" (mp)
154 inline intptr_t Atomic::cmpxchg_ptr(intptr_t exchange_value, volatile intptr_t* dest, intptr_t compare_value) {
155 return (intptr_t)cmpxchg((jlong)exchange_value, (volatile jlong*)dest, (jlong)compare_value);
158 inline void* Atomic::cmpxchg_ptr(void* exchange_value, volatile void* dest, void* compare_value) {
159 return (void*)cmpxchg((jlong)exchange_value, (volatile jlong*)dest, (jlong)compare_value);
166 inline intptr_t Atomic::add_ptr(intptr_t add_value, volatile intptr_t* dest) {
167 return (intptr_t)Atomic::add((jint)add_value, (volatile jint*)dest);
170 inline void* Atomic::add_ptr(intptr_t add_value, volatile void* dest) {
171 return (void*)Atomic::add((jint)add_value, (volatile jint*)dest);
175 inline void Atomic::inc_ptr(volatile intptr_t* dest) {
176 inc((volatile jint*)dest);
179 inline void Atomic::dec_ptr(volatile intptr_t* dest) {
180 dec((volatile jint*)dest);
183 inline intptr_t Atomic::xchg_ptr(intptr_t exchange_value, volatile intptr_t* dest) {
184 return (intptr_t)xchg((jint)exchange_value, (volatile jint*)dest);
193 inline jlong Atomic::cmpxchg (jlong exchange_value, volatile jlong* dest, jlong compare_value) {
194 return _Atomic_cmpxchg_long(exchange_value, dest, compare_value, os::is_MP());
197 inline intptr_t Atomic::cmpxchg_ptr(intptr_t exchange_value, volatile intptr_t* dest, intptr_t compare_value) {
198 return (intptr_t)cmpxchg((jint)exchange_value, (volatile jint*)dest, (jint)compare_value);
201 inline void* Atomic::cmpxchg_ptr(void* exchange_value, volatile void* dest, void* compare_value) {
202 return (void*)cmpxchg((jint)exchange_value, (volatile jint*)dest, (jint)compare_value);
206 volatile jlong dest;
207 _Atomic_move_long(src, &dest);
208 return dest;
211 inline void Atomic::store(jlong store_value, jlong* dest) {
212 _Atomic_move_long((volatile jlong*)&store_value, (volatile jlong*)dest);
215 inline void Atomic::store(jlong store_value, volatile jlong* dest) {
216 _Atomic_move_long((volatile jlong*)&store_value, dest);