Home
last modified time | relevance | path

Searched refs:old_val (Results 1 – 20 of 20) sorted by relevance

/third_party/pulseaudio/src/pulsecore/
Datomic.h425 int new_val, old_val; in pa_atomic_add() local
432 : "=&r" (old_val), "=&r" (not_exclusive), "=&r" (new_val) in pa_atomic_add()
438 return old_val; in pa_atomic_add()
444 int new_val, old_val; in pa_atomic_sub() local
451 : "=&r" (old_val), "=&r" (not_exclusive), "=&r" (new_val) in pa_atomic_sub()
457 return old_val; in pa_atomic_sub()
564 int old_val; in pa_atomic_add() local
566 old_val = a->value; in pa_atomic_add()
567 } while(__kernel_cmpxchg(old_val, old_val + i, &a->value)); in pa_atomic_add()
568 return old_val; in pa_atomic_add()
[all …]
/third_party/mtdev/src/
Dcore.c53 static int defuzz(int value, int old_val, int fuzz) in defuzz() argument
56 if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) in defuzz()
57 return old_val; in defuzz()
59 if (value > old_val - fuzz && value < old_val + fuzz) in defuzz()
60 return (old_val * 3 + value) / 4; in defuzz()
62 if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) in defuzz()
63 return (old_val + value) / 2; in defuzz()
/third_party/flutter/skia/src/core/
DSkExchange.h18 T old_val = std::move(obj); in exchange() local
20 return old_val; in exchange()
/third_party/ltp/include/
Dtst_atomic.h152 int old_val, new_val; in tst_atomic_add_return() local
161 : "=&d" (old_val), "=&d" (new_val), "+Q" (*v) in tst_atomic_add_return()
165 return old_val + i; in tst_atomic_add_return()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DThreading.h98 sys::cas_flag old_val = sys::CompareAndSwap(&flag, Wait, Uninitialized); in call_once()
99 if (old_val == Uninitialized) { in call_once()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DThreading.h125 sys::cas_flag old_val = sys::CompareAndSwap(&flag.status, Wait, Uninitialized); in call_once()
126 if (old_val == Uninitialized) { in call_once()
/third_party/gstreamer/gstplugins_base/tests/check/libs/
Dsdp.c267 const gchar *old_val; in GST_START_TEST() local
278 old_val = gst_sdp_message_get_attribute_val (message, "test_attr_session"); in GST_START_TEST()
280 fail_unless (old_val != NULL); in GST_START_TEST()
282 attr.value = g_strdup_printf ("%s;param2=val2", old_val); in GST_START_TEST()
299 old_val = in GST_START_TEST()
303 fail_unless (old_val != NULL); in GST_START_TEST()
/third_party/benchmark/tools/gbench/
Dreport.py75 def calculate_change(old_val, new_val): argument
79 if old_val == 0 and new_val == 0:
81 if old_val == 0:
82 return float(new_val - old_val) / (float(old_val + new_val) / 2)
83 return float(new_val - old_val) / abs(old_val)
/third_party/skia/src/ports/
DSkFontConfigInterface_direct.cpp369 SkScalar old_val; member
375 if (val < ranges[0].old_val) { in map_ranges()
381 if (val < ranges[i+1].old_val) { in map_ranges()
382 return map_range(val, ranges[i].old_val, ranges[i+1].old_val, in map_ranges()
DSkFontMgr_fontconfig.cpp278 SkScalar old_val; member
284 if (val < ranges[0].old_val) { in map_ranges()
290 if (val < ranges[i+1].old_val) { in map_ranges()
291 return map_range(val, ranges[i].old_val, ranges[i+1].old_val, in map_ranges()
/third_party/flutter/skia/src/ports/
DSkFontConfigInterface_direct.cpp384 SkScalar old_val; member
390 if (val < ranges[0].old_val) { in map_ranges()
396 if (val < ranges[i+1].old_val) { in map_ranges()
397 return map_range(val, ranges[i].old_val, ranges[i+1].old_val, in map_ranges()
DSkFontMgr_fontconfig.cpp302 SkScalar old_val; member
308 if (val < ranges[0].old_val) { in map_ranges()
314 if (val < ranges[i+1].old_val) { in map_ranges()
315 return map_range(val, ranges[i].old_val, ranges[i+1].old_val, in map_ranges()
/third_party/mbedtls/tests/suites/
Dtest_suite_asn1write.function397 unsigned char *old_val = NULL;
403 old_val = nd.val.p;
405 memset( old_val, 'x', old_len );
424 TEST_ASSERT( found->val.p == old_val );
426 TEST_ASSERT( found->val.p != old_val );
/third_party/python/Python/
Dcontext.c275 PyObject *old_val = NULL; in PyContextVar_Set() local
276 int found = _PyHamt_Find(ctx->ctx_vars, (PyObject *)var, &old_val); in PyContextVar_Set()
281 Py_XINCREF(old_val); in PyContextVar_Set()
282 PyContextToken *tok = token_new(ctx, var, old_val); in PyContextVar_Set()
283 Py_XDECREF(old_val); in PyContextVar_Set()
/third_party/cef/libcef/common/
Dvalue_base.h339 ValueType* old_val = value_; in Detach() local
341 return old_val; in Detach()
/third_party/skia/modules/skottie/src/animator/
DVectorKeyframeAnimator.cpp115 const auto old_val = Sk4f::Load(dst), in onSeek() local
118 changed |= (new_val != old_val).anyTrue(); in onSeek()
/third_party/flutter/skia/third_party/externals/sdl/src/core/linux/
DSDL_fcitx.c266 const char *old_val, in Fcitx_SetCapabilities() argument
DSDL_ibus.c306 IBus_SetCapabilities(void *data, const char *name, const char *old_val, in IBus_SetCapabilities() argument
/third_party/libinput/test/
Dtest-tablet.c2039 double val, old_val = 0; in START_TEST() local
2072 litest_assert_double_gt(val, old_val); in START_TEST()
2075 old_val = val; in START_TEST()
3255 double val, old_val = 0; in START_TEST() local
3284 litest_assert_double_gt(val, old_val); in START_TEST()
3287 old_val = val; in START_TEST()
/third_party/python/Lib/test/test_email/
Dtest_email.py478 old_val = msg.get_param("report-type")
483 msg.set_param("report-type", old_val)
487 ('report-type', old_val)])