/third_party/glib/glib/ |
D | gatomic.c | 213 gint oldval, in gboolean() 216 return g_atomic_int_compare_and_exchange (atomic, oldval, newval); in gboolean() 399 gpointer oldval, in gboolean() 403 oldval, newval); in gboolean() 604 gint oldval, in gboolean() 607 return InterlockedCompareExchange (atomic, newval, oldval) == oldval; in gboolean() 660 gpointer oldval, in gboolean() 663 return InterlockedCompareExchangePointer (atomic, newval, oldval) == oldval; in gboolean() 773 gint oldval, in gboolean() 780 if ((success = (*atomic == oldval))) in gboolean() [all …]
|
D | gatomic.h | 47 gint oldval, 69 gpointer oldval, 165 #define g_atomic_int_compare_and_exchange(atomic, oldval, newval) \ argument 167 gint gaicae_oldval = (oldval); \ 169 (void) (0 ? *(atomic) ^ (newval) ^ (oldval) : 1); \ 206 #define g_atomic_pointer_compare_and_exchange(atomic, oldval, newval) \ argument 208 G_STATIC_ASSERT (sizeof (oldval) == sizeof (gpointer)); \ 209 glib_typeof (*(atomic)) gapcae_oldval = (oldval); \ 215 #define g_atomic_pointer_compare_and_exchange(atomic, oldval, newval) \ 217 G_STATIC_ASSERT (sizeof (oldval) == sizeof (gpointer)); \ [all …]
|
D | gdataset.c | 916 gpointer oldval, in g_datalist_id_replace_data() argument 943 if (val == oldval) in g_datalist_id_replace_data() 974 if (val == NULL && oldval == NULL && newval != NULL) in g_datalist_id_replace_data() 1002 return val == oldval; in g_datalist_id_replace_data()
|
D | gthreadpool.c | 1037 guint oldval; in g_thread_pool_stop_unused_threads() local 1039 oldval = g_thread_pool_get_max_unused_threads (); in g_thread_pool_stop_unused_threads() 1042 g_thread_pool_set_max_unused_threads (oldval); in g_thread_pool_stop_unused_threads()
|
/third_party/flutter/skia/third_party/externals/sdl/src/atomic/ |
D | SDL_atomic.c | 87 SDL_AtomicCAS(SDL_atomic_t *a, int oldval, int newval) in SDL_AtomicCAS() argument 90 …return (_InterlockedCompareExchange((long*)&a->value, (long)newval, (long)oldval) == (long)oldval); in SDL_AtomicCAS() 92 return (SDL_bool) OSAtomicCompareAndSwap32Barrier(oldval, newval, &a->value); in SDL_AtomicCAS() 94 return (SDL_bool) __sync_bool_compare_and_swap(&a->value, oldval, newval); in SDL_AtomicCAS() 96 …((int) atomic_cas_64((volatile uint64_t*)&a->value, (uint64_t)oldval, (uint64_t)newval) == oldval); in SDL_AtomicCAS() 98 …((int) atomic_cas_32((volatile uint32_t*)&a->value, (uint32_t)oldval, (uint32_t)newval) == oldval); in SDL_AtomicCAS() 103 if (a->value == oldval) { in SDL_AtomicCAS() 116 SDL_AtomicCASPtr(void **a, void *oldval, void *newval) in SDL_AtomicCASPtr() argument 119 return (_InterlockedCompareExchange((long*)a, (long)newval, (long)oldval) == (long)oldval); in SDL_AtomicCASPtr() 121 return (_InterlockedCompareExchangePointer(a, newval, oldval) == oldval); in SDL_AtomicCASPtr() [all …]
|
/third_party/libuv/src/unix/ |
D | atomic-ops.h | 25 UV_UNUSED(static int cmpxchgi(int* ptr, int oldval, int newval)); 31 UV_UNUSED(static int cmpxchgi(int* ptr, int oldval, int newval)) { in UV_UNUSED() argument 36 : "r" (newval), "0" (oldval) in UV_UNUSED() 41 if (__plo_CSST(ptr, (unsigned int*) &oldval, newval, in UV_UNUSED() 43 return oldval; in UV_UNUSED() 47 return atomic_cas_uint((uint_t *)ptr, (uint_t)oldval, (uint_t)newval); in UV_UNUSED() 49 return __sync_val_compare_and_swap(ptr, oldval, newval); in UV_UNUSED()
|
D | random-sysctl-linux.c | 35 void* oldval; member 59 args.oldval = uuid; in uv__random_sysctl()
|
/third_party/glib/glib/tests/ |
D | slice.c | 11 const gchar *oldval; in test_slice_nodebug() local 13 oldval = g_getenv ("G_SLICE"); in test_slice_nodebug() 32 if (oldval) in test_slice_nodebug() 33 g_setenv ("G_SLICE", oldval, TRUE); in test_slice_nodebug() 39 const gchar *oldval; in test_slice_debug() local 41 oldval = g_getenv ("G_SLICE"); in test_slice_debug() 60 if (oldval) in test_slice_debug() 61 g_setenv ("G_SLICE", oldval, TRUE); in test_slice_debug()
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/ |
D | test_sync_atomic.cpp | 59 type test_val_cmp_swap(volatile type *ptr, type oldval, type newval) { \ 60 return __sync_val_compare_and_swap(ptr, oldval, newval); \ 62 type test_val_cmp_swap_loop(volatile type *ptr, type oldval, type newval) { \ 66 prev = __sync_val_compare_and_swap(ptr, oldval, newval); \ 67 if (prev == oldval) \ 70 oldval = prev; \
|
D | test_sync_atomic.h | 26 type test_val_cmp_swap(volatile type *ptr, type oldval, type newval); \ 27 type test_val_cmp_swap_loop(volatile type *ptr, type oldval, type newval);
|
/third_party/boost/boost/hana/ |
D | replace.hpp | 25 constexpr auto replace_t::operator()(Xs&& xs, OldVal&& oldval, NewVal&& newval) const { in operator ()() argument 37 static_cast<OldVal&&>(oldval), in operator ()() 46 apply(Xs&& xs, OldVal&& oldval, NewVal&& newval) { in apply() 49 hana::equal.to(static_cast<OldVal&&>(oldval)), in apply()
|
/third_party/boost/libs/hana/include/boost/hana/ |
D | replace.hpp | 25 constexpr auto replace_t::operator()(Xs&& xs, OldVal&& oldval, NewVal&& newval) const { in operator ()() argument 37 static_cast<OldVal&&>(oldval), in operator ()() 46 apply(Xs&& xs, OldVal&& oldval, NewVal&& newval) { in apply() 49 hana::equal.to(static_cast<OldVal&&>(oldval)), in apply()
|
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/ |
D | user_atomic.h | 119 int32_t oldval; \ 120 oldval = atomic_fetchadd_int(addr, -val); \ 121 if (oldval < val) { \ 128 int32_t oldval; \ 129 oldval = atomic_fetchadd_int(addr, -val); \ 130 if (oldval < val) { \
|
/third_party/toybox/kconfig/ |
D | symbol.c | 267 struct symbol_value newval, oldval; in sym_calc_value() local 278 oldval = sym->curr; in sym_calc_value() 358 if (memcmp(&oldval, &sym->curr, sizeof(oldval))) { in sym_calc_value() 430 tristate oldval = sym_get_tristate_value(sym); in sym_set_tristate_value() local 432 if (oldval != val && !sym_tristate_within_range(sym, val)) in sym_set_tristate_value() 458 if (oldval != val) in sym_set_tristate_value() 466 tristate oldval, newval; in sym_toggle_tristate_value() local 468 oldval = newval = sym_get_tristate_value(sym); in sym_toggle_tristate_value() 483 } while (oldval != newval); in sym_toggle_tristate_value() 574 const char *oldval; in sym_set_string_value() local [all …]
|
D | conf.c | 209 tristate oldval, newval; in conf_sym() local 218 oldval = sym_get_tristate_value(sym); in conf_sym() 219 switch (oldval) { in conf_sym() 230 if (oldval != no && sym_tristate_within_range(sym, no)) in conf_sym() 232 if (oldval != mod && sym_tristate_within_range(sym, mod)) in conf_sym() 234 if (oldval != yes && sym_tristate_within_range(sym, yes)) in conf_sym() 262 newval = oldval; in conf_sym()
|
/third_party/ltp/testcases/kernel/syscalls/sysctl/ |
D | sysctl04.c | 32 void *oldval; member 48 .oldval = tc->oldval, in verify_sysctl()
|
D | sysctl01.c | 49 .oldval = osname, in verify_sysctl()
|
/third_party/ffmpeg/libavutil/ |
D | dict.c | 75 char *oldval = NULL, *copy_key = NULL, *copy_value = NULL; in av_dict_set() local 100 oldval = tag->value; in av_dict_set() 115 if (oldval && flags & AV_DICT_APPEND) { in av_dict_set() 116 size_t len = strlen(oldval) + strlen(copy_value) + 1; in av_dict_set() 120 av_strlcat(newval, oldval, len); in av_dict_set() 121 av_freep(&oldval); in av_dict_set()
|
/third_party/boost/libs/hana/include/boost/hana/fwd/ |
D | replace.hpp | 48 constexpr auto replace = [](auto&& xs, auto&& oldval, auto&& newval) { in __anon019123eb0102() argument 57 constexpr auto operator()(Xs&& xs, OldVal&& oldval, NewVal&& newval) const;
|
/third_party/boost/boost/hana/fwd/ |
D | replace.hpp | 48 constexpr auto replace = [](auto&& xs, auto&& oldval, auto&& newval) { in __anon49a517980102() argument 57 constexpr auto operator()(Xs&& xs, OldVal&& oldval, NewVal&& newval) const;
|
/third_party/mesa3d/src/util/ |
D | u_atomic.c | 64 __sync_val_compare_and_swap_8(uint64_t *ptr, uint64_t oldval, uint64_t newval) in __sync_val_compare_and_swap_8() argument 70 if (*ptr == oldval) in __sync_val_compare_and_swap_8()
|
/third_party/flutter/skia/third_party/externals/sdl/include/ |
D | SDL_atomic.h | 198 extern DECLSPEC SDL_bool SDLCALL SDL_AtomicCAS(SDL_atomic_t *a, int oldval, int newval); 245 extern DECLSPEC SDL_bool SDLCALL SDL_AtomicCASPtr(void **a, void *oldval, void *newval);
|
/third_party/boost/libs/hana/test/_include/laws/ |
D | functor.hpp | 69 [](auto x, auto oldval, auto newval) { in TestFunctor() argument 71 hana::replace(x, oldval, newval), in TestFunctor() 72 hana::replace_if(x, hana::equal.to(oldval), newval) in TestFunctor()
|
/third_party/ejdb/src/ |
D | ejdb2.c | 689 IWKV_val *oldval = &ctx->oldval; in _jb_put_handler_after() local 691 if (oldval->size) { in _jb_put_handler_after() 692 iwkv_val_dispose(oldval); in _jb_put_handler_after() 699 if (oldval->size) { in _jb_put_handler_after() 700 rc = jbl_from_buf_keep_onstack(&jblprev, oldval->data, oldval->size); in _jb_put_handler_after() 720 if (oldval->size) { in _jb_put_handler_after() 721 iwkv_val_dispose(oldval); in _jb_put_handler_after() 723 if (rc && !oldval->size) { in _jb_put_handler_after() 734 static iwrc _jb_put_handler(const IWKV_val *key, const IWKV_val *val, IWKV_val *oldval, void *op) { in _jb_put_handler() argument 736 if (oldval && oldval->size) { in _jb_put_handler() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/futex/ |
D | futextest.h | 278 futex_cmpxchg(futex_t *uaddr, u_int32_t oldval, u_int32_t newval) in futex_cmpxchg() argument 280 return __sync_val_compare_and_swap(uaddr, oldval, newval); in futex_cmpxchg()
|