/external/webrtc/common_audio/vad/ |
D | vad_gmm_unittest.cc | 22 int16_t delta = 0; in TEST_F() local 24 EXPECT_EQ(1048576, WebRtcVad_GaussianProbability(0, 0, 128, &delta)); in TEST_F() 25 EXPECT_EQ(0, delta); in TEST_F() 26 EXPECT_EQ(1048576, WebRtcVad_GaussianProbability(16, 128, 128, &delta)); in TEST_F() 27 EXPECT_EQ(0, delta); in TEST_F() 28 EXPECT_EQ(1048576, WebRtcVad_GaussianProbability(-16, -128, 128, &delta)); in TEST_F() 29 EXPECT_EQ(0, delta); in TEST_F() 32 EXPECT_EQ(1024, WebRtcVad_GaussianProbability(59, 0, 128, &delta)); in TEST_F() 33 EXPECT_EQ(7552, delta); in TEST_F() 34 EXPECT_EQ(1024, WebRtcVad_GaussianProbability(75, 128, 128, &delta)); in TEST_F() [all …]
|
/external/fonttools/Lib/fontTools/varLib/ |
D | iup.py | 39 def iup_contour(delta, coords): argument 40 assert len(delta) == len(coords) 41 if None not in delta: 42 return delta 44 n = len(delta) 46 indices = [i for i,v in enumerate(delta) if v is not None] 57 out.extend(iup_segment(coords[i1:i2], coords[ri1], delta[ri1], coords[ri2], delta[ri2])) 58 out.append(delta[start]) 62 out.extend(iup_segment(coords[i1:i2], coords[ri1], delta[ri1], coords[ri2], delta[ri2])) 63 out.append(delta[end]) [all …]
|
/external/mesa3d/src/intel/compiler/ |
D | brw_eu_util.c | 63 unsigned delta = i*32; in brw_copy4() local 64 brw_MOV(p, byte_offset(dst, delta), byte_offset(src, delta)); in brw_copy4() 65 brw_MOV(p, byte_offset(dst, delta+16), byte_offset(src, delta+16)); in brw_copy4() 82 unsigned delta = i*32; in brw_copy8() local 83 brw_MOV(p, byte_offset(dst, delta), byte_offset(src, delta)); in brw_copy8() 97 unsigned delta = i*32; in brw_copy_indirect_to_indirect() local 98 brw_MOV(p, deref_4f(dst_ptr, delta), deref_4f(src_ptr, delta)); in brw_copy_indirect_to_indirect() 99 brw_MOV(p, deref_4f(dst_ptr, delta+16), deref_4f(src_ptr, delta+16)); in brw_copy_indirect_to_indirect() 115 unsigned delta = i*32; in brw_copy_from_indirect() local 116 brw_MOV(p, byte_offset(dst, delta), deref_4f(ptr, delta)); in brw_copy_from_indirect() [all …]
|
/external/igt-gpu-tools/assembler/ |
D | brw_eu_util.c | 65 unsigned delta = i*32; in brw_copy4() local 66 brw_MOV(p, byte_offset(dst, delta), byte_offset(src, delta)); in brw_copy4() 67 brw_MOV(p, byte_offset(dst, delta+16), byte_offset(src, delta+16)); in brw_copy4() 84 unsigned delta = i*32; in brw_copy8() local 85 brw_MOV(p, byte_offset(dst, delta), byte_offset(src, delta)); in brw_copy8() 99 unsigned delta = i*32; in brw_copy_indirect_to_indirect() local 100 brw_MOV(p, deref_4f(dst_ptr, delta), deref_4f(src_ptr, delta)); in brw_copy_indirect_to_indirect() 101 brw_MOV(p, deref_4f(dst_ptr, delta+16), deref_4f(src_ptr, delta+16)); in brw_copy_indirect_to_indirect() 117 unsigned delta = i*32; in brw_copy_from_indirect() local 118 brw_MOV(p, byte_offset(dst, delta), deref_4f(ptr, delta)); in brw_copy_from_indirect() [all …]
|
/external/universal-tween-engine/java/api/src/aurelienribon/tweenengine/ |
D | BaseTween.java | 360 protected void updateOverride(int step, int lastStep, boolean isIterationStep, float delta) { in updateOverride() argument 413 public void update(float delta) { in update() argument 416 deltaTime = delta; in update() 450 float delta = 0-currentTime; in testRelaunch() local 451 deltaTime -= delta; in testRelaunch() 455 updateOverride(step, step-1, isIterationStep, delta); in testRelaunch() 461 float delta = 0-currentTime; in testRelaunch() local 462 deltaTime -= delta; in testRelaunch() 466 updateOverride(step, step+1, isIterationStep, delta); in testRelaunch() 476 float delta = 0-currentTime; in updateStep() local [all …]
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | range.cc | 41 TfLiteStatus GetSize(TfLiteContext* context, T start, T limit, T delta, in GetSize() argument 43 TF_LITE_ENSURE(context, !std::equal_to<T>()(delta, 0)); in GetSize() 45 context, (start >= limit && delta < 0) || (start <= limit && delta > 0)); in GetSize() 48 ? ((std::abs(limit - start) + std::abs(delta) - 1) / std::abs(delta)) in GetSize() 49 : std::ceil(std::abs((limit - start) / delta))); in GetSize() 54 const TfLiteTensor* limit, const TfLiteTensor* delta, in ResizeOutput() argument 63 *GetTensorData<int32_t>(delta), &size)); in ResizeOutput() 69 *GetTensorData<float>(delta), &size)); in ResizeOutput() 90 const TfLiteTensor* delta; in Prepare() local 91 TF_LITE_ENSURE_OK(context, GetInputSafe(context, node, kDeltaTensor, &delta)); in Prepare() [all …]
|
/external/libchrome/base/i18n/ |
D | time_formatting_unittest.cc | 46 string16 TimeDurationFormatString(const TimeDelta& delta, in TimeDurationFormatString() argument 49 EXPECT_TRUE(TimeDurationFormat(delta, width, &str)) in TimeDurationFormatString() 50 << "Failed to format " << delta.ToInternalValue() << " with width " in TimeDurationFormatString() 58 string16 TimeDurationFormatWithSecondsString(const TimeDelta& delta, in TimeDurationFormatWithSecondsString() argument 61 EXPECT_TRUE(TimeDurationFormatWithSeconds(delta, width, &str)) in TimeDurationFormatWithSecondsString() 62 << "Failed to format " << delta.ToInternalValue() << " with width " in TimeDurationFormatWithSecondsString() 300 TimeDelta delta = TimeDelta::FromMinutes(15 * 60 + 42); in TEST() local 305 TimeDurationFormatString(delta, DURATION_WIDTH_WIDE)); in TEST() 307 TimeDurationFormatString(delta, DURATION_WIDTH_SHORT)); in TEST() 309 TimeDurationFormatString(delta, DURATION_WIDTH_NARROW)); in TEST() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/ |
D | make_unicode_casefold.py | 50 def _AddDelta(a, delta): argument 52 if type(delta) == int: 53 return a+delta 54 if delta == 'EvenOdd': 59 if delta == 'OddEven': 64 print("Bad Delta:", delta, file=sys.stderr) 82 delta = r[2] 83 d = delta 84 if type(delta) is not str: 86 if delta.endswith('Skip'): [all …]
|
/external/python/cpython2/Objects/ |
D | unicodectype.c | 60 int delta = ctype->title; in _PyUnicode_ToTitlecase() local 63 return delta; in _PyUnicode_ToTitlecase() 65 if (delta >= 32768) in _PyUnicode_ToTitlecase() 66 delta -= 65536; in _PyUnicode_ToTitlecase() 68 return ch + delta; in _PyUnicode_ToTitlecase() 153 int delta = ctype->upper; in _PyUnicode_ToUppercase() local 155 return delta; in _PyUnicode_ToUppercase() 156 if (delta >= 32768) in _PyUnicode_ToUppercase() 157 delta -= 65536; in _PyUnicode_ToUppercase() 158 return ch + delta; in _PyUnicode_ToUppercase() [all …]
|
/external/python/cpython2/Lib/encodings/ |
D | punycode.py | 59 delta = (curlen+1) * (char - oldchar) 64 delta += index - oldindex 65 result.append(delta-1) 67 delta = 0 93 def adapt(delta, first, numchars): argument 95 delta //= 700 97 delta //= 2 98 delta += delta // numchars 101 while delta > 455: 102 delta = delta // 35 # base - tmin [all …]
|
/external/freetype/src/lzw/ |
D | ftlzw.c | 195 FT_ULong delta = (FT_ULong)( zip->limit - zip->cursor ); in ft_lzw_file_skip_output() local 198 if ( delta >= count ) in ft_lzw_file_skip_output() 199 delta = count; in ft_lzw_file_skip_output() 201 zip->cursor += delta; in ft_lzw_file_skip_output() 202 zip->pos += delta; in ft_lzw_file_skip_output() 204 count -= delta; in ft_lzw_file_skip_output() 210 FT_ULong delta = FT_LZW_BUFFER_SIZE; in ft_lzw_file_skip_output() local 214 if ( delta > count ) in ft_lzw_file_skip_output() 215 delta = count; in ft_lzw_file_skip_output() 217 numread = ft_lzwstate_io( &zip->lzw, NULL, delta ); in ft_lzw_file_skip_output() [all …]
|
/external/skia/samplecode/ |
D | SampleDegenerateTwoPtRadials.cpp | 14 static void draw_gradient2(SkCanvas* canvas, const SkRect& rect, SkScalar delta) { in draw_gradient2() argument 25 SkPoint c0 = { l + 2 * w / 5 + delta, t + h / 2 }; in draw_gradient2() 48 SkScalar delta = fTime / 15.f; in onDrawContent() local 49 int intPart = SkScalarFloorToInt(delta); in onDrawContent() 50 delta = delta - SK_Scalar1 * intPart; in onDrawContent() 52 delta = SK_Scalar1 - delta; in onDrawContent() 54 delta -= SK_ScalarHalf; in onDrawContent() 56 delta /= DELTA_SCALE; in onDrawContent() 62 draw_gradient2(canvas, SkRect::MakeXYWH(l, t, w, h), delta); in onDrawContent() 64 txt.appendf("gap at \"tangent\" pt = %f", SkScalarToFloat(delta)); in onDrawContent() [all …]
|
/external/lzma/C/ |
D | Delta.c | 22 void Delta_Encode(Byte *state, unsigned delta, Byte *data, SizeT size) in Delta_Encode() argument 26 MyMemCpy(buf, state, delta); in Delta_Encode() 31 for (j = 0; j < delta && i < size; i++, j++) in Delta_Encode() 39 if (j == delta) in Delta_Encode() 41 MyMemCpy(state, buf + j, delta - j); in Delta_Encode() 42 MyMemCpy(state + delta - j, buf, j); in Delta_Encode() 45 void Delta_Decode(Byte *state, unsigned delta, Byte *data, SizeT size) in Delta_Decode() argument 49 MyMemCpy(buf, state, delta); in Delta_Decode() 54 for (j = 0; j < delta && i < size; i++, j++) in Delta_Decode() 60 if (j == delta) in Delta_Decode() [all …]
|
/external/python/cpython3/Lib/encodings/ |
D | punycode.py | 57 delta = (curlen+1) * (char - oldchar) 62 delta += index - oldindex 63 result.append(delta-1) 65 delta = 0 91 def adapt(delta, first, numchars): argument 93 delta //= 700 95 delta //= 2 96 delta += delta // numchars 99 while delta > 455: 100 delta = delta // 35 # base - tmin [all …]
|
/external/skqp/samplecode/ |
D | SampleDegenerateTwoPtRadials.cpp | 15 static void draw_gradient2(SkCanvas* canvas, const SkRect& rect, SkScalar delta) { in draw_gradient2() argument 26 SkPoint c0 = { l + 2 * w / 5 + delta, t + h / 2 }; in draw_gradient2() 55 SkScalar delta = fTime / 15.f; in onDrawContent() local 56 int intPart = SkScalarFloorToInt(delta); in onDrawContent() 57 delta = delta - SK_Scalar1 * intPart; in onDrawContent() 59 delta = SK_Scalar1 - delta; in onDrawContent() 61 delta -= SK_ScalarHalf; in onDrawContent() 63 delta /= DELTA_SCALE; in onDrawContent() 69 draw_gradient2(canvas, SkRect::MakeXYWH(l, t, w, h), delta); in onDrawContent() 71 txt.appendf("gap at \"tangent\" pt = %f", SkScalarToFloat(delta)); in onDrawContent() [all …]
|
/external/skia/src/core/ |
D | SkScalerCache.cpp | 64 size_t delta = 0; in preparePath() local 66 delta = glyph->path()->approximateBytesUsed(); in preparePath() 68 return {glyph->path(), delta}; in preparePath() 92 size_t delta = 0; in internalPrepare() local 95 delta += size; in internalPrepare() 98 delta += pathSize; in internalPrepare() 103 return {{results, glyphIDs.size()}, delta}; in internalPrepare() 107 size_t delta = 0; in prepareImage() local 109 delta = glyph->imageSize(); in prepareImage() 111 return {glyph->image(), delta}; in prepareImage() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | punyref.cpp | 111 punycode_uint delta, punycode_uint numpoints, int firsttime ) in adapt() argument 115 delta = firsttime ? delta / damp : delta >> 1; in adapt() 117 delta += delta / numpoints; in adapt() 119 for (k = 0; delta > ((base - tmin) * tmax) / 2; k += base) { in adapt() 120 delta /= base - tmin; in adapt() 123 return k + (base - tmin + 1) * delta / (delta + skew); in adapt() 135 punycode_uint n, delta, h, b, out, max_out, bias, j, m, q, k, t; in punycode_encode() local 140 delta = out = 0; in punycode_encode() 179 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in punycode_encode() 180 delta += (m - n) * (h + 1); in punycode_encode() [all …]
|
/external/pdfium/third_party/agg23/ |
D | agg_rasterizer_scanline_aa.cpp | 169 int delta, p, first, dx; in render_hline() local 176 delta = y2 - y1; in render_hline() 177 m_cur_cell.add_cover(delta, (fx1 + fx2) * delta); in render_hline() 190 delta = p / dx; in render_hline() 193 delta--; in render_hline() 196 m_cur_cell.add_cover(delta, (fx1 + first) * delta); in render_hline() 199 y1 += delta; in render_hline() 201 p = poly_base_size * (y2 - y1 + delta); in render_hline() 210 delta = lift; in render_hline() 214 delta++; in render_hline() [all …]
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_quant_common.c | 164 int16_t vp9_dc_quant(int qindex, int delta, vpx_bit_depth_t bit_depth) { in vp9_dc_quant() argument 167 case VPX_BITS_8: return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 168 case VPX_BITS_10: return dc_qlookup_10[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 169 case VPX_BITS_12: return dc_qlookup_12[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 176 return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 180 int16_t vp9_ac_quant(int qindex, int delta, vpx_bit_depth_t bit_depth) { in vp9_ac_quant() argument 183 case VPX_BITS_8: return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant() 184 case VPX_BITS_10: return ac_qlookup_10[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant() 185 case VPX_BITS_12: return ac_qlookup_12[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant() 192 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
|
/external/kotlinx.atomicfu/atomicfu/src/nativeMain/kotlin/kotlinx/atomicfu/ |
D | AtomicFU.kt | 104 public actual inline fun getAndAdd(delta: Int): Int = a.addAndGet(delta) - delta in toString() 105 public actual inline fun addAndGet(delta: Int): Int = a.addAndGet(delta) in toString() 109 public actual inline operator fun plusAssign(delta: Int) { getAndAdd(delta) } in toString() 110 public actual inline operator fun minusAssign(delta: Int) { getAndAdd(-delta) } in toString() 138 public actual inline fun getAndAdd(delta: Long): Long = a.addAndGet(delta) - delta in getAndIncrement() 139 public actual inline fun addAndGet(delta: Long): Long = a.addAndGet(delta) in getAndIncrement() 143 public actual inline operator fun plusAssign(delta: Long) { getAndAdd(delta) } in getAndIncrement() 144 public actual inline operator fun minusAssign(delta: Long) { getAndAdd(-delta) } in minusAssign()
|
/external/libsrtp2/test/ |
D | rdbx_driver.c | 150 int delta; in rdbx_check_add() local 153 delta = srtp_index_guess(&rdbx->index, &est, idx); in rdbx_check_add() 155 if (srtp_rdbx_check(rdbx, delta) != srtp_err_status_ok) { in rdbx_check_add() 165 if (srtp_rdbx_add_index(rdbx, delta) != srtp_err_status_ok) { in rdbx_check_add() 182 int delta; in rdbx_check_expect_failure() local 186 delta = srtp_index_guess(&rdbx->index, &est, idx); in rdbx_check_expect_failure() 188 status = srtp_rdbx_check(rdbx, delta); in rdbx_check_expect_failure() 190 printf("delta: %d ", delta); in rdbx_check_expect_failure() 200 int delta; in rdbx_check_add_unordered() local 204 delta = srtp_index_guess(&rdbx->index, &est, idx); in rdbx_check_add_unordered() [all …]
|
/external/kotlinx.atomicfu/atomicfu/src/jsMain/kotlin/kotlinx/atomicfu/ |
D | AtomicFU.kt | 102 public actual fun getAndAdd(delta: Int): Int { in toString() 104 value += delta in toString() 109 public actual fun addAndGet(delta: Int): Int { in toString() 110 value += delta in toString() 120 public actual inline operator fun plusAssign(delta: Int) { getAndAdd(delta) } in toString() 122 public actual inline operator fun minusAssign(delta: Int) { getAndAdd(-delta) } in toString() 156 public actual fun getAndAdd(delta: Long): Long { in getAndIncrement() 158 value += delta in getAndIncrement() 163 public actual fun addAndGet(delta: Long): Long { in addAndGet() 164 value += delta in addAndGet() [all …]
|
/external/libxaac/decoder/ |
D | ixheaacd_mps_smoothing.c | 35 int delta, one_minus_delta; in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() local 45 delta = self->param_slot_diff[ps] * self->inv_smoothing_time[ps]; in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 46 one_minus_delta = 1073741824 - delta; in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 54 (ixheaacd_mult32(delta, self->m1_param_re[ps][pb][row][col]) + in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 59 (ixheaacd_mult32(delta, self->m1_param_im[ps][pb][row][col]) + in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 64 (ixheaacd_mult32(delta, self->m2_decor_re[ps][pb][row][col]) + in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 69 (ixheaacd_mult32(delta, self->m2_decor_im[ps][pb][row][col]) + in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 74 (ixheaacd_mult32(delta, self->m2_resid_re[ps][pb][row][col]) + in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 79 (ixheaacd_mult32(delta, self->m2_resid_im[ps][pb][row][col]) + in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 89 delta = self->param_slot_diff[ps] * self->inv_smoothing_time[ps]; in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() [all …]
|
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/ |
D | dogleg.h | 10 Scalar delta, in dogleg() argument 48 if (qnorm <= delta) in dogleg() 66 alpha = delta / qnorm; in dogleg() 87 if (sgnorm >= delta) in dogleg() 94 temp = bnorm / gnorm * (bnorm / qnorm) * (sgnorm / delta); in dogleg() 95 …delta / qnorm * numext::abs2(sgnorm / delta) + sqrt(numext::abs2(temp - delta / qnorm) + (1.-numex… in dogleg() 96 alpha = delta / qnorm * (1. - numext::abs2(sgnorm / delta)) / temp; in dogleg() 101 temp = (1.-alpha) * (std::min)(sgnorm,delta); in dogleg()
|
/external/skia/src/gpu/effects/ |
D | GrMagnifierEffect.fp | 21 float2 delta = (coord - boundsUniform.xy) * boundsUniform.zw; 22 delta = min(delta, float2(1.0) - delta); 23 delta *= float2(xInvInset, yInvInset); 26 if (delta.s < 2.0 && delta.t < 2.0) { 27 delta = float2(2.0) - delta; 28 float dist = length(delta); 32 float2 delta_squared = delta * delta;
|