Home
last modified time | relevance | path

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

12345678910>>...103

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Dutil.cuh33 unsigned long long int old = *address_as_ull; // NOLINT in MsAtomicAdd() local
36 assumed = old; in MsAtomicAdd()
37old = atomicCAS(address_as_ull, assumed, __double_as_longlong(val + __longlong_as_double(assumed))… in MsAtomicAdd()
38 } while (assumed != old); // NOLINT in MsAtomicAdd()
39 return __longlong_as_double(old); in MsAtomicAdd()
53 uint32_t old = *address_as_ui; in MsAtomicAdd() local
60 assumed = old; in MsAtomicAdd()
61 old_byte = (old >> shift) & 0xff; in MsAtomicAdd()
63 newval = (old & ~(0x000000ff << shift)) | (newval << shift); in MsAtomicAdd()
64 old = atomicCAS(address_as_ui, assumed, newval); in MsAtomicAdd()
[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/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/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/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/flutter/skia/third_party/externals/imgui/examples/
Dimgui_impl_dx11.cpp158 BACKUP_DX11_STATE old; in ImGui_ImplDX11_RenderDrawData() local
159old.ScissorRectsCount = old.ViewportsCount = D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPEL… in ImGui_ImplDX11_RenderDrawData()
160 ctx->RSGetScissorRects(&old.ScissorRectsCount, old.ScissorRects); in ImGui_ImplDX11_RenderDrawData()
161 ctx->RSGetViewports(&old.ViewportsCount, old.Viewports); in ImGui_ImplDX11_RenderDrawData()
162 ctx->RSGetState(&old.RS); in ImGui_ImplDX11_RenderDrawData()
163 ctx->OMGetBlendState(&old.BlendState, old.BlendFactor, &old.SampleMask); in ImGui_ImplDX11_RenderDrawData()
164 ctx->OMGetDepthStencilState(&old.DepthStencilState, &old.StencilRef); in ImGui_ImplDX11_RenderDrawData()
165 ctx->PSGetShaderResources(0, 1, &old.PSShaderResource); in ImGui_ImplDX11_RenderDrawData()
166 ctx->PSGetSamplers(0, 1, &old.PSSampler); in ImGui_ImplDX11_RenderDrawData()
167 old.PSInstancesCount = old.VSInstancesCount = 256; in ImGui_ImplDX11_RenderDrawData()
[all …]
Dimgui_impl_dx10.cpp154 BACKUP_DX10_STATE old; in ImGui_ImplDX10_RenderDrawData() local
155old.ScissorRectsCount = old.ViewportsCount = D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPEL… in ImGui_ImplDX10_RenderDrawData()
156 ctx->RSGetScissorRects(&old.ScissorRectsCount, old.ScissorRects); in ImGui_ImplDX10_RenderDrawData()
157 ctx->RSGetViewports(&old.ViewportsCount, old.Viewports); in ImGui_ImplDX10_RenderDrawData()
158 ctx->RSGetState(&old.RS); in ImGui_ImplDX10_RenderDrawData()
159 ctx->OMGetBlendState(&old.BlendState, old.BlendFactor, &old.SampleMask); in ImGui_ImplDX10_RenderDrawData()
160 ctx->OMGetDepthStencilState(&old.DepthStencilState, &old.StencilRef); in ImGui_ImplDX10_RenderDrawData()
161 ctx->PSGetShaderResources(0, 1, &old.PSShaderResource); in ImGui_ImplDX10_RenderDrawData()
162 ctx->PSGetSamplers(0, 1, &old.PSSampler); in ImGui_ImplDX10_RenderDrawData()
163 ctx->PSGetShader(&old.PS); in ImGui_ImplDX10_RenderDrawData()
[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/e2fsprogs/lib/ext2fs/
Direl_ma.c27 static errcode_t ima_put(ext2_irel irel, ext2_ino_t old,
29 static errcode_t ima_get(ext2_irel irel, ext2_ino_t old,
31 static errcode_t ima_get_by_orig(ext2_irel irel, ext2_ino_t orig, ext2_ino_t *old,
34 static errcode_t ima_next(ext2_irel irel, ext2_ino_t *old,
40 static errcode_t ima_move(ext2_irel irel, ext2_ino_t old, ext2_ino_t new);
41 static errcode_t ima_delete(ext2_irel irel, ext2_ino_t old);
140 static errcode_t ima_put(ext2_irel irel, ext2_ino_t old,
149 if (old > ma->max_inode)
156 if (ma->entries[(unsigned) old].new == 0)
157 ent->orig = old;
[all …]
Dbrel_ma.c30 static errcode_t bma_put(ext2_brel brel, blk64_t old,
32 static errcode_t bma_get(ext2_brel brel, blk64_t old,
35 static errcode_t bma_next(ext2_brel brel, blk64_t *old,
37 static errcode_t bma_move(ext2_brel brel, blk64_t old, blk64_t new);
38 static errcode_t bma_delete(ext2_brel brel, blk64_t old);
105 static errcode_t bma_put(ext2_brel brel, blk64_t old, in bma_put() argument
111 if (old > ma->max_block) in bma_put()
113 ma->entries[(unsigned)old] = *ent; in bma_put()
117 static errcode_t bma_get(ext2_brel brel, blk64_t old, in bma_get() argument
123 if (old > ma->max_block) in bma_get()
[all …]
Direl.h35 errcode_t (*put)(ext2_irel irel, ext2_ino_t old,
40 errcode_t (*get)(ext2_irel irel, ext2_ino_t old,
46 errcode_t (*get_by_orig)(ext2_irel irel, ext2_ino_t orig, ext2_ino_t *old,
58 errcode_t (*next)(ext2_irel irel, ext2_ino_t *old,
86 errcode_t (*move)(ext2_irel irel, ext2_ino_t old, ext2_ino_t new);
92 errcode_t (*delete)(ext2_irel irel, ext2_ino_t old);
103 #define ext2fs_irel_put(irel, old, ent) ((irel)->put((irel), old, ent)) argument
104 #define ext2fs_irel_get(irel, old, ent) ((irel)->get((irel), old, ent)) argument
105 #define ext2fs_irel_get_by_orig(irel, orig, old, ent) \ argument
106 ((irel)->get_by_orig((irel), orig, old, ent))
[all …]
Dbrel.h37 errcode_t (*put)(ext2_brel brel, blk64_t old,
43 errcode_t (*get)(ext2_brel brel, blk64_t old,
55 errcode_t (*next)(ext2_brel brel, blk64_t *old,
62 errcode_t (*move)(ext2_brel brel, blk64_t old, blk_t new);
67 errcode_t (*delete)(ext2_brel brel, blk64_t old);
79 #define ext2fs_brel_put(brel, old, ent) ((brel)->put((brel), old, ent)) argument
80 #define ext2fs_brel_get(brel, old, ent) ((brel)->get((brel), old, ent)) argument
82 #define ext2fs_brel_next(brel, old, ent) ((brel)->next((brel), old, ent)) argument
83 #define ext2fs_brel_move(brel, old, new) ((brel)->move((brel), old, new)) argument
84 #define ext2fs_brel_delete(brel, old) ((brel)->delete((brel), old)) argument
/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/grpc/include/grpc/impl/codegen/
Datm_windows.h101 gpr_atm old; in gpr_atm_no_barrier_fetch_add() local
103 old = *p; in gpr_atm_no_barrier_fetch_add()
104 } while (!gpr_atm_no_barrier_cas(p, old, old + delta)); in gpr_atm_no_barrier_fetch_add()
105 return old; in gpr_atm_no_barrier_fetch_add()
110 gpr_atm old; in gpr_atm_full_fetch_add() local
113 old = *p; in gpr_atm_full_fetch_add()
114 } while (old != (gpr_atm)InterlockedCompareExchange64((volatile LONGLONG*)p, in gpr_atm_full_fetch_add()
115 (LONGLONG)old + delta, in gpr_atm_full_fetch_add()
116 (LONGLONG)old)); in gpr_atm_full_fetch_add()
119 old = *p; in gpr_atm_full_fetch_add()
[all …]
/third_party/glib/gobject/
Dgatomicarray.c127 guint8 *new, *old; in _g_atomic_array_copy() local
131 old = g_atomic_pointer_get (&array->data); in _g_atomic_array_copy()
132 if (old) in _g_atomic_array_copy()
134 old_size = G_ATOMIC_ARRAY_DATA_SIZE (old); in _g_atomic_array_copy()
140 memcpy (new, old, old_size); in _g_atomic_array_copy()
161 guint8 *old; in _g_atomic_array_update() local
164 old = g_atomic_pointer_get (&array->data); in _g_atomic_array_update()
166 g_assert (old == NULL || G_ATOMIC_ARRAY_DATA_SIZE (old) <= G_ATOMIC_ARRAY_DATA_SIZE (new_data)); in _g_atomic_array_update()
169 if (old) in _g_atomic_array_update()
170 freelist_free (old); in _g_atomic_array_update()
/third_party/boost/boost/contract/
Dold.hpp212 explicit old_value_copy(T const& old) : in old_value_copy()
213 old_(old) {} // This makes the one single copy of T. in old_value_copy()
223 T const& old() const { return old_; } in old() function
290 return typed_copy_->old(); in operator *()
313 if(typed_copy_) return &typed_copy_->old(); in operator ->()
335 explicit old_ptr(boost::shared_ptr<old_value_copy<T> > old) in old_ptr() argument
336 : typed_copy_(old) {} in old_ptr()
418 return typed_copy_->old(); in operator *()
436 if(typed_copy_) return &typed_copy_->old(); in operator ->()
458 explicit old_ptr_if_copyable(boost::shared_ptr<old_value_copy<T> > old) in old_ptr_if_copyable() argument
[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/gstreamer/gstreamer/gst/
Dgstsample.c281 GstBufferList *old = NULL; in gst_sample_set_buffer_list() local
285 old = sample->buffer_list; in gst_sample_set_buffer_list()
287 if (old == buffer_list) in gst_sample_set_buffer_list()
298 if (old) { in gst_sample_set_buffer_list()
299 gst_mini_object_remove_parent (GST_MINI_OBJECT_CAST (old), in gst_sample_set_buffer_list()
301 gst_buffer_list_unref (old); in gst_sample_set_buffer_list()
317 GstBuffer *old = NULL; in gst_sample_set_buffer() local
322 old = sample->buffer; in gst_sample_set_buffer()
324 if (old == buffer) in gst_sample_set_buffer()
335 if (old) { in gst_sample_set_buffer()
[all …]
/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/src/thread/
Dpthread_sigmask.c5 int pthread_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict old) in pthread_sigmask() argument
9 ret = -__syscall(SYS_rt_sigprocmask, how, set, old, _NSIG/8); in pthread_sigmask()
10 if (!ret && old) { in pthread_sigmask()
11 if (sizeof old->__bits[0] == 8) { in pthread_sigmask()
12 old->__bits[0] &= ~0x380000000ULL; in pthread_sigmask()
14 old->__bits[0] &= ~0x80000000UL; in pthread_sigmask()
15 old->__bits[1] &= ~0x3UL; in pthread_sigmask()
/third_party/e2fsprogs/tests/progs/
Dtest_rel.c93 static void display_brel_entry(blk_t old, in display_brel_entry() argument
96 printf("Old= %u, New= %u, Owner= %u:%u\n", old, ent->new, in display_brel_entry()
103 static void display_irel_entry(ext2_ino_t old, in display_irel_entry() argument
111 printf("Old= %lu, New= %lu, Original=%lu, Max_refs=%u\n", old, in display_irel_entry()
116 retval = ext2fs_irel_start_iter_ref(irel, old); in display_irel_entry()
178 blk_t old, new, offset=0, owner=0; in do_brel_put() local
187 if (parse_block(argv[0], "old block", argv[1], &old)) in do_brel_put()
206 retval = ext2fs_brel_put(brel, old, &ent); in do_brel_put()
308 blk_t old, new; in do_brel_move() local
316 if (parse_block(argv[0], "old block", argv[1], &old)) in do_brel_move()
[all …]

12345678910>>...103