Lines Matching defs:dest

33 inline void Atomic::store    (jbyte    store_value, jbyte*    dest) { *dest = store_value; }
34 inline void Atomic::store (jshort store_value, jshort* dest) { *dest = store_value; }
35 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; }
47 inline void Atomic::inc (volatile jint* dest) { (void)add (1, dest); }
48 inline void Atomic::inc_ptr(volatile intptr_t* dest) { (void)add_ptr(1, dest); }
49 inline void Atomic::inc_ptr(volatile void* dest) { (void)add_ptr(1, dest); }
51 inline void Atomic::dec (volatile jint* dest) { (void)add (-1, dest); }
52 inline void Atomic::dec_ptr(volatile intptr_t* dest) { (void)add_ptr(-1, dest); }
53 inline void Atomic::dec_ptr(volatile void* dest) { (void)add_ptr(-1, dest); }
71 jint _Atomic_add(jint add_value, volatile jint* dest IS_MP_DECL());
72 jint _Atomic_xchg(jint exchange_value, volatile jint* dest);
73 jint _Atomic_cmpxchg(jint exchange_value, volatile jint* dest,
75 jlong _Atomic_cmpxchg_long(jlong exchange_value, volatile jlong* dest,
79 inline jint Atomic::add (jint add_value, volatile jint* dest) {
80 return _Atomic_add(add_value, dest IS_MP_ARG());
83 inline jint Atomic::xchg (jint exchange_value, volatile jint* dest) {
84 return _Atomic_xchg(exchange_value, dest);
87 inline jint Atomic::cmpxchg (jint exchange_value, volatile jint* dest, jint compare_value) {
88 return _Atomic_cmpxchg(exchange_value, dest, compare_value IS_MP_ARG());
91 inline jlong Atomic::cmpxchg (jlong exchange_value, volatile jlong* dest, jlong compare_value) {
92 return _Atomic_cmpxchg_long(exchange_value, dest, compare_value IS_MP_ARG());
97 inline void Atomic::store (jlong store_value, jlong* dest) { *dest = store_value; }
98 inline void Atomic::store (jlong store_value, volatile jlong* dest) { *dest = store_value; }
99 extern "C" jlong _Atomic_add_long(jlong add_value, volatile jlong* dest);
100 extern "C" jlong _Atomic_xchg_long(jlong exchange_value, volatile jlong* dest);
102 inline intptr_t Atomic::add_ptr(intptr_t add_value, volatile intptr_t* dest) {
103 return (intptr_t)_Atomic_add_long((jlong)add_value, (volatile jlong*)dest);
106 inline void* Atomic::add_ptr(intptr_t add_value, volatile void* dest) {
107 return (void*)_Atomic_add_long((jlong)add_value, (volatile jlong*)dest);
110 inline intptr_t Atomic::xchg_ptr(intptr_t exchange_value, volatile intptr_t* dest) {
111 return (intptr_t)_Atomic_xchg_long((jlong)exchange_value, (volatile jlong*)dest);
114 inline void* Atomic::xchg_ptr(void* exchange_value, volatile void* dest) {
115 return (void*)_Atomic_xchg_long((jlong)exchange_value, (volatile jlong*)dest);
118 inline intptr_t Atomic::cmpxchg_ptr(intptr_t exchange_value, volatile intptr_t* dest, intptr_t compare_value) {
119 return (intptr_t)_Atomic_cmpxchg_long((jlong)exchange_value, (volatile jlong*)dest, (jlong)compare_value);
122 inline void* Atomic::cmpxchg_ptr(void* exchange_value, volatile void* dest, void* compare_value) {
123 return (void*)_Atomic_cmpxchg_long((jlong)exchange_value, (volatile jlong*)dest, (jlong)compare_value);
130 inline intptr_t Atomic::add_ptr(intptr_t add_value, volatile intptr_t* dest) {
131 return (intptr_t)add((jint)add_value, (volatile jint*)dest);
134 inline void* Atomic::add_ptr(intptr_t add_value, volatile void* dest) {
135 return (void*)add((jint)add_value, (volatile jint*)dest);
138 inline intptr_t Atomic::xchg_ptr(intptr_t exchange_value, volatile intptr_t* dest) {
139 return (intptr_t)xchg((jint)exchange_value, (volatile jint*)dest);
142 inline void* Atomic::xchg_ptr(void* exchange_value, volatile void* dest) {
143 return (void*)xchg((jint)exchange_value, (volatile jint*)dest);
146 inline intptr_t Atomic::cmpxchg_ptr(intptr_t exchange_value, volatile intptr_t* dest, intptr_t compare_value) {
147 return (intptr_t)cmpxchg((jint)exchange_value, (volatile jint*)dest, (jint)compare_value);
150 inline void* Atomic::cmpxchg_ptr(void* exchange_value, volatile void* dest, void* compare_value) {
151 return (void*)cmpxchg((jint)exchange_value, (volatile jint*)dest, (jint)compare_value);
157 volatile jlong dest;
158 _Atomic_move_long(src, &dest);
159 return dest;
162 inline void Atomic::store(jlong store_value, jlong* dest) {
163 _Atomic_move_long((volatile jlong*)&store_value, (volatile jlong*)dest);
166 inline void Atomic::store(jlong store_value, volatile jlong* dest) {
167 _Atomic_move_long((volatile jlong*)&store_value, dest);
177 inline jint _Atomic_add(jint add_value, volatile jint* dest, int mp) {
181 : "0" (addend), "r" (dest), "r" (mp)
187 inline jlong _Atomic_add_long(jlong add_value, volatile jlong* dest, int mp) {
191 : "0" (addend), "r" (dest), "r" (mp)
196 inline jlong _Atomic_xchg_long(jlong exchange_value, volatile jlong* dest) {
199 : "0" (exchange_value), "r" (dest)
206 inline jint _Atomic_xchg(jint exchange_value, volatile jint* dest) {
209 : "0" (exchange_value), "r" (dest)
214 inline jint _Atomic_cmpxchg(jint exchange_value, volatile jint* dest, jint compare_value, int mp) {
217 : "r" (exchange_value), "a" (compare_value), "r" (dest), "r" (mp)
223 jlong _Atomic_cmpxchg_long_gcc(jlong exchange_value, volatile jlong* dest, jlong compare_value, int mp);
225 inline jlong _Atomic_cmpxchg_long(jlong exchange_value, volatile jlong* dest, jlong compare_value, int mp) {
229 : "r" (exchange_value), "a" (compare_value), "r" (dest), "r" (mp)
233 return _Atomic_cmpxchg_long_gcc(exchange_value, dest, compare_value, os::is_MP());
254 "D"(dest), "S"(mp)