Home
last modified time | relevance | path

Searched refs:old (Results 1 – 25 of 1933) sorted by relevance

12345678910>>...78

/third_party/musl/porting/liteos_m/user/src/internal/
Datomic.h22 int old; in a_cas() local
24 do old = a_ll(p); in a_cas()
25 while (old==t && !a_sc(p, s)); in a_cas()
27 return old; in a_cas()
35 int old; in a_swap() local
37 do old = a_ll(p); in a_swap()
40 return old; in a_swap()
48 int old; in a_fetch_add() local
50 do old = a_ll(p); in a_fetch_add()
51 while (!a_sc(p, (unsigned)old + v)); in a_fetch_add()
[all …]
/third_party/musl/porting/liteos_m/kernel/src/internal/
Datomic.h22 int old; in a_cas() local
24 do old = a_ll(p); in a_cas()
25 while (old==t && !a_sc(p, s)); in a_cas()
27 return old; in a_cas()
35 int old; in a_swap() local
37 do old = a_ll(p); in a_swap()
40 return old; in a_swap()
48 int old; in a_fetch_add() local
50 do old = a_ll(p); in a_fetch_add()
51 while (!a_sc(p, (unsigned)old + v)); in a_fetch_add()
[all …]
/third_party/musl/porting/uniproton/kernel/src/internal/
Datomic.h22 int old; in a_cas() local
24 do old = a_ll(p); in a_cas()
25 while (old==t && !a_sc(p, s)); in a_cas()
27 return old; in a_cas()
35 int old; in a_swap() local
37 do old = a_ll(p); in a_swap()
40 return old; in a_swap()
48 int old; in a_fetch_add() local
50 do old = a_ll(p); in a_fetch_add()
51 while (!a_sc(p, (unsigned)old + v)); in a_fetch_add()
[all …]
/third_party/musl/src/internal/
Datomic.h22 int old; in a_cas() local
24 do old = a_ll(p); in a_cas()
25 while (old==t && !a_sc(p, s)); in a_cas()
27 return old; in a_cas()
35 int old; in a_swap() local
37 do old = a_ll(p); in a_swap()
40 return old; in a_swap()
48 int old; in a_fetch_add() local
50 do old = a_ll(p); in a_fetch_add()
51 while (!a_sc(p, (unsigned)old + v)); in a_fetch_add()
[all …]
/third_party/musl/porting/liteos_a/kernel/src/internal/
Datomic.h22 int old; in a_cas() local
24 do old = a_ll(p); in a_cas()
25 while (old==t && !a_sc(p, s)); in a_cas()
27 return old; in a_cas()
35 int old; in a_swap() local
37 do old = a_ll(p); in a_swap()
40 return old; in a_swap()
48 int old; in a_fetch_add() local
50 do old = a_ll(p); in a_fetch_add()
51 while (!a_sc(p, (unsigned)old + v)); in a_fetch_add()
[all …]
/third_party/python/Include/internal/
Dpycore_atomic.h295 __int64 old;
300 old = *value;
301 } while(_InterlockedCompareExchange64_HLEAcquire((volatile __int64*)value, old, old) != old);
307 old = *value;
308 } while(_InterlockedCompareExchange64_HLERelease((volatile __int64*)value, old, old) != old);
312 old = *value;
317 old = *value;
318 } while(_InterlockedCompareExchange64((volatile __int64*)value, old, old) != old);
322 return old;
333 long old;
[all …]
Dpycore_atomic_funcs.h47 __int64 old;
49 old = *volatile_var;
50 } while(_InterlockedCompareExchange64(volatile_var, old, old) != old);
54 long old;
56 old = *volatile_var;
57 } while(_InterlockedCompareExchange(volatile_var, old, old) != old);
59 return old;
/third_party/skia/third_party/externals/imgui/backends/
Dimgui_impl_dx11.cpp221 BACKUP_DX11_STATE old = {}; in ImGui_ImplDX11_RenderDrawData() local
222old.ScissorRectsCount = old.ViewportsCount = D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPEL… in ImGui_ImplDX11_RenderDrawData()
223 ctx->RSGetScissorRects(&old.ScissorRectsCount, old.ScissorRects); in ImGui_ImplDX11_RenderDrawData()
224 ctx->RSGetViewports(&old.ViewportsCount, old.Viewports); in ImGui_ImplDX11_RenderDrawData()
225 ctx->RSGetState(&old.RS); in ImGui_ImplDX11_RenderDrawData()
226 ctx->OMGetBlendState(&old.BlendState, old.BlendFactor, &old.SampleMask); in ImGui_ImplDX11_RenderDrawData()
227 ctx->OMGetDepthStencilState(&old.DepthStencilState, &old.StencilRef); in ImGui_ImplDX11_RenderDrawData()
228 ctx->PSGetShaderResources(0, 1, &old.PSShaderResource); in ImGui_ImplDX11_RenderDrawData()
229 ctx->PSGetSamplers(0, 1, &old.PSSampler); in ImGui_ImplDX11_RenderDrawData()
230 old.PSInstancesCount = old.VSInstancesCount = old.GSInstancesCount = 256; in ImGui_ImplDX11_RenderDrawData()
[all …]
Dimgui_impl_dx10.cpp213 BACKUP_DX10_STATE old = {}; in ImGui_ImplDX10_RenderDrawData() local
214old.ScissorRectsCount = old.ViewportsCount = D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPEL… in ImGui_ImplDX10_RenderDrawData()
215 ctx->RSGetScissorRects(&old.ScissorRectsCount, old.ScissorRects); in ImGui_ImplDX10_RenderDrawData()
216 ctx->RSGetViewports(&old.ViewportsCount, old.Viewports); in ImGui_ImplDX10_RenderDrawData()
217 ctx->RSGetState(&old.RS); in ImGui_ImplDX10_RenderDrawData()
218 ctx->OMGetBlendState(&old.BlendState, old.BlendFactor, &old.SampleMask); in ImGui_ImplDX10_RenderDrawData()
219 ctx->OMGetDepthStencilState(&old.DepthStencilState, &old.StencilRef); in ImGui_ImplDX10_RenderDrawData()
220 ctx->PSGetShaderResources(0, 1, &old.PSShaderResource); in ImGui_ImplDX10_RenderDrawData()
221 ctx->PSGetSamplers(0, 1, &old.PSSampler); in ImGui_ImplDX10_RenderDrawData()
222 ctx->PSGetShader(&old.PS); in ImGui_ImplDX10_RenderDrawData()
[all …]
/third_party/ffmpeg/compat/atomics/suncc/
Dstdatomic.h110 intptr_t old = *expected; in atomic_compare_exchange_strong() local
111 *expected = (intptr_t)atomic_cas_ptr(object, (void *)old, (void *)desired); in atomic_compare_exchange_strong()
112 return *expected == old; in atomic_compare_exchange_strong()
134 intptr_t old; in atomic_fetch_or() local
136 old = atomic_load(object); in atomic_fetch_or()
137 } while (!atomic_compare_exchange_strong(object, old, old | operand)); in atomic_fetch_or()
138 return old; in atomic_fetch_or()
143 intptr_t old; in atomic_fetch_xor() local
145 old = atomic_load(object); in atomic_fetch_xor()
146 } while (!atomic_compare_exchange_strong(object, old, old ^ operand)); in atomic_fetch_xor()
[all …]
/third_party/alsa-lib/src/control/
Dsetup.c48 snd_ctl_elem_value_t *old; member
68 snd_ctl_elem_value_free(elem->old); in free_elems()
100 err = snd_ctl_elem_read(h->ctl, elem->old); in snd_sctl_install()
110 int old, val, mask; in snd_sctl_install() local
111 old = snd_ctl_elem_value_get_boolean(elem->old, k); in snd_sctl_install()
113 old &= ~mask; in snd_sctl_install()
114 if (old) { in snd_sctl_install()
116 val |= old; in snd_sctl_install()
123 long old, val, mask; in snd_sctl_install() local
124 old = snd_ctl_elem_value_get_integer(elem->old, k); in snd_sctl_install()
[all …]
/third_party/musl/src/thread/
Dpthread_sigmask.c41 int pthread_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict old) in pthread_sigmask() argument
51 ret = -__syscall(SYS_rt_sigprocmask, how, new_set_ptr, old, _NSIG / 8); in pthread_sigmask()
53 ret = -__syscall(SYS_rt_sigprocmask, how, set, old, _NSIG / 8); in pthread_sigmask()
56 ret = -__syscall(SYS_rt_sigprocmask, how, set, old, _NSIG/8); in pthread_sigmask()
58 if (!ret && old) { in pthread_sigmask()
59 if (sizeof old->__bits[0] == 8) { in pthread_sigmask()
60 old->__bits[0] &= ~0x380000000ULL; in pthread_sigmask()
62 old->__bits[0] &= ~0x80000000UL; in pthread_sigmask()
63 old->__bits[1] &= ~0x3UL; in pthread_sigmask()
Dpthread_mutex_trylock.c5 int old, own; in __pthread_mutex_trylock_owner() local
10 old = m->_m_lock; in __pthread_mutex_trylock_owner()
11 own = old & 0x3fffffff; in __pthread_mutex_trylock_owner()
25 old &= 0x40000000; in __pthread_mutex_trylock_owner()
37 if (own || (old && !(type & 4))) return EBUSY; in __pthread_mutex_trylock_owner()
49 tid |= old & 0x40000000; in __pthread_mutex_trylock_owner()
51 if (a_cas(&m->_m_lock, old, tid) != old) { in __pthread_mutex_trylock_owner()
77 if (old) { in __pthread_mutex_trylock_owner()
/third_party/musl/porting/linux/user/src/signal/
Dsigaction.c26 …ntercept_sigaction(int signo, const struct sigaction *restrict sa, struct sigaction *restrict old);
44 int __libc_sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) in __libc_sigaction() argument
84 int r = __syscall(SYS_rt_sigaction, sig, sa?&ksa:0, old?&ksa_old:0, _NSIG/8); in __libc_sigaction()
89 if (old && !r) { in __libc_sigaction()
90 old->sa_handler = ksa_old.handler; in __libc_sigaction()
91 old->sa_flags = ksa_old.flags; in __libc_sigaction()
92 memcpy(&old->sa_mask, &ksa_old.mask, _NSIG/8); in __libc_sigaction()
97 int __sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) in __sigaction() argument
104 if (intercept_sigaction(sig, sa, old)) { in __sigaction()
108 return __libc_sigaction(sig, sa, old); in __sigaction()
/third_party/musl/src/signal/linux/
Dsigaction.c26 …ntercept_sigaction(int signo, const struct sigaction *restrict sa, struct sigaction *restrict old);
44 int __libc_sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) in __libc_sigaction() argument
84 int r = __syscall(SYS_rt_sigaction, sig, sa?&ksa:0, old?&ksa_old:0, _NSIG/8); in __libc_sigaction()
89 if (old && !r) { in __libc_sigaction()
90 old->sa_handler = ksa_old.handler; in __libc_sigaction()
91 old->sa_flags = ksa_old.flags; in __libc_sigaction()
92 memcpy(&old->sa_mask, &ksa_old.mask, _NSIG/8); in __libc_sigaction()
97 int __sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) in __sigaction() argument
104 if (intercept_sigaction(sig, sa, old)) { in __sigaction()
108 return __libc_sigaction(sig, sa, old); in __sigaction()
/third_party/musl/src/time/
Dtimer_settime.c7 …ttime(timer_t t, int flags, const struct itimerspec *restrict val, struct itimerspec *restrict old) in timer_settime() argument
18 || !IS32BIT(is) || !IS32BIT(vs) || (sizeof(time_t)>4 && old)) in timer_settime()
20 ((long long[]){is, ins, vs, vns}), old); in timer_settime()
28 if (!r && old) { in timer_settime()
29 old->it_interval.tv_sec = old32[0]; in timer_settime()
30 old->it_interval.tv_nsec = old32[1]; in timer_settime()
31 old->it_value.tv_sec = old32[2]; in timer_settime()
32 old->it_value.tv_nsec = old32[3]; in timer_settime()
36 return syscall(SYS_timer_settime, t, flags, val, old); in timer_settime()
/third_party/musl/porting/linux/user/src/thread/
Dpthread_sigmask.c51 int pthread_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict old) in pthread_sigmask() argument
60 ret = -__syscall(SYS_rt_sigprocmask, how, new_set_ptr, old, _NSIG/8); in pthread_sigmask()
62 ret = -__syscall(SYS_rt_sigprocmask, how, set, old, _NSIG/8); in pthread_sigmask()
65 if (!ret && old) { in pthread_sigmask()
66 if (sizeof old->__bits[0] == 8) { in pthread_sigmask()
67 old->__bits[0] &= ~0x380000000ULL; in pthread_sigmask()
69 old->__bits[0] &= ~0x80000000UL; in pthread_sigmask()
70 old->__bits[1] &= ~0x3UL; in pthread_sigmask()
/third_party/toybox/lib/
Dllist.c29 void *old = list; in llist_traverse() local
36 if (old == list) break; in llist_traverse()
137 struct num_cache *old = get_num_cache(*cache, num); in add_num_cache() local
139 if (old) return old; in add_num_cache()
141 old = xzalloc(sizeof(struct num_cache)+len); in add_num_cache()
142 old->next = *cache; in add_num_cache()
143 old->num = num; in add_num_cache()
144 memcpy(old->data, data, len); in add_num_cache()
145 *cache = old; in add_num_cache()
/third_party/musl/src/linux/
Dtimerfd.c12 int timerfd_settime(int fd, int flags, const struct itimerspec *new, struct itimerspec *old) in timerfd_settime() argument
19 || !IS32BIT(is) || !IS32BIT(vs) || (sizeof(time_t)>4 && old)) in timerfd_settime()
21 ((long long[]){is, ins, vs, vns}), old); in timerfd_settime()
29 if (!r && old) { in timerfd_settime()
30 old->it_interval.tv_sec = old32[0]; in timerfd_settime()
31 old->it_interval.tv_nsec = old32[1]; in timerfd_settime()
32 old->it_value.tv_sec = old32[2]; in timerfd_settime()
33 old->it_value.tv_nsec = old32[3]; in timerfd_settime()
37 return syscall(SYS_timerfd_settime, fd, flags, new, old); in timerfd_settime()
/third_party/musl/arch/aarch64/
Datomic_arch.h34 int old; in a_cas() local
36 old = a_ll(p); in a_cas()
37 if (old != t) { in a_cas()
42 return old; in a_cas()
64 void *old; in a_cas_p() local
66 old = a_ll_p(p); in a_cas_p()
67 if (old != t) { in a_cas_p()
72 return old; in a_cas_p()
/third_party/node/test/parallel/
Dtest-stream2-readable-wrap.js30 const old = new EE();
32 assert.strictEqual(r, r.wrap(old));
36 old.pause = function() {
37 old.emit('pause');
41 old.resume = function() {
42 old.emit('resume');
65 old.emit('data', item);
69 old.emit('end');
/third_party/musl/porting/liteos_a/user/src/thread/
Dpthread_mutex_trylock.c5 int old, own; in __pthread_mutex_trylock_owner() local
10 old = m->_m_lock; in __pthread_mutex_trylock_owner()
11 own = old & 0x3fffffff; in __pthread_mutex_trylock_owner()
20 if (own || (old && !(type & 4))) return EBUSY; in __pthread_mutex_trylock_owner()
29 tid |= old & 0x40000000; in __pthread_mutex_trylock_owner()
31 if (a_cas(&m->_m_lock, old, tid) != old) { in __pthread_mutex_trylock_owner()
44 if (old) { in __pthread_mutex_trylock_owner()
/third_party/musl/src/signal/
Dsigaction.c20 int __libc_sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) in __libc_sigaction() argument
51 int r = __syscall(SYS_rt_sigaction, sig, sa?&ksa:0, old?&ksa_old:0, _NSIG/8); in __libc_sigaction()
52 if (old && !r) { in __libc_sigaction()
53 old->sa_handler = ksa_old.handler; in __libc_sigaction()
54 old->sa_flags = ksa_old.flags; in __libc_sigaction()
55 memcpy(&old->sa_mask, &ksa_old.mask, _NSIG/8); in __libc_sigaction()
60 int __sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) in __sigaction() argument
76 int r = __libc_sigaction(sig, sa, old); in __sigaction()
Dsetitimer.c7 int setitimer(int which, const struct itimerval *restrict new, struct itimerval *restrict old) in setitimer() argument
18 if (!r && old) { in setitimer()
19 old->it_interval.tv_sec = old32[0]; in setitimer()
20 old->it_interval.tv_usec = old32[1]; in setitimer()
21 old->it_value.tv_sec = old32[2]; in setitimer()
22 old->it_value.tv_usec = old32[3]; in setitimer()
27 return syscall(SYS_setitimer, which, new, old); in setitimer()
/third_party/musl/src/misc/
Dioctl.c83 static void convert_ioctl_struct(const struct ioctl_compat_map *map, char *old, char *new, int dir) in convert_ioctl_struct() argument
92 convert_ioctl_struct(map+1, old, new, dir); in convert_ioctl_struct()
93 convert_ioctl_struct(map+2, old+4, new+8, dir); in convert_ioctl_struct()
97 convert_ioctl_struct(map+3, old+68, new+72+adj, dir); in convert_ioctl_struct()
98 convert_ioctl_struct(map+3, old+72, new+76+3*adj, dir); in convert_ioctl_struct()
104 if (dir==W) memcpy(old+old_offset, new+new_offset, len); in convert_ioctl_struct()
105 else memcpy(new+new_offset, old+old_offset, len); in convert_ioctl_struct()
115 memcpy(old+old_offset, &old_ts, sizeof old_ts); in convert_ioctl_struct()
117 memcpy(&old_ts, old+old_offset, sizeof old_ts); in convert_ioctl_struct()
124 if (dir==W) memcpy(old+old_offset, new+new_offset, old_size-old_offset); in convert_ioctl_struct()
[all …]

12345678910>>...78