/external/fonttools/Lib/fontTools/varLib/ |
D | iup.py | 44 def iup_contour(delta, coords): argument 45 assert len(delta) == len(coords) 46 if None not in delta: 47 return delta 49 n = len(delta) 51 indices = [i for i,v in enumerate(delta) if v is not None] 62 out.extend(iup_segment(coords[i1:i2], coords[ri1], delta[ri1], coords[ri2], delta[ri2])) 63 out.append(delta[start]) 67 out.extend(iup_segment(coords[i1:i2], coords[ri1], delta[ri1], coords[ri2], delta[ri2])) 68 out.append(delta[end]) [all …]
|
/external/webrtc/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/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/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 | 35 TfLiteStatus GetSize(TfLiteContext* context, T start, T limit, T delta, in GetSize() argument 37 TF_LITE_ENSURE(context, !std::equal_to<T>()(delta, 0)); in GetSize() 39 (start > limit && delta < 0) || (start < limit && delta > 0)); in GetSize() 42 ? ((std::abs(limit - start) + std::abs(delta) - 1) / std::abs(delta)) in GetSize() 43 : std::ceil(std::abs((limit - start) / delta))); in GetSize() 48 const TfLiteTensor* limit, const TfLiteTensor* delta, in ResizeOutput() argument 57 *GetTensorData<int32_t>(delta), &size)); in ResizeOutput() 63 *GetTensorData<float>(delta), &size)); in ResizeOutput() 82 const TfLiteTensor* delta = GetInput(context, node, kDeltaTensor); in Prepare() local 86 TF_LITE_ENSURE_EQ(context, NumDimensions(delta), 0); in Prepare() [all …]
|
/external/syzkaller/vendor/golang.org/x/net/idna/ |
D | punycode.go | 104 delta, n, bias := int32(0), initialN, initialBias 125 delta += (m - n) * (h + 1) 126 if delta < 0 { 132 delta++ 133 if delta < 0 { 141 q := delta 156 bias = adapt(delta, h+1, h == b) 157 delta = 0 161 delta++ 190 func adapt(delta, numPoints int32, firstTime bool) int32 { argument [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 | 196 FT_ULong delta = (FT_ULong)( zip->limit - zip->cursor ); in ft_lzw_file_skip_output() local 199 if ( delta >= count ) in ft_lzw_file_skip_output() 200 delta = count; in ft_lzw_file_skip_output() 202 zip->cursor += delta; in ft_lzw_file_skip_output() 203 zip->pos += delta; in ft_lzw_file_skip_output() 205 count -= delta; in ft_lzw_file_skip_output() 211 FT_ULong delta = FT_LZW_BUFFER_SIZE; in ft_lzw_file_skip_output() local 215 if ( delta > count ) in ft_lzw_file_skip_output() 216 delta = count; in ft_lzw_file_skip_output() 218 numread = ft_lzwstate_io( &zip->lzw, NULL, delta ); in ft_lzw_file_skip_output() [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/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/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/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/skia/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/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/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/junit/src/main/java/org/junit/ |
D | Assert.java | 230 double actual, double delta) { in assertNotEquals() argument 231 if (!doubleIsDifferent(unexpected, actual, delta)) { in assertNotEquals() 248 static public void assertNotEquals(double unexpected, double actual, double delta) { in assertNotEquals() argument 249 assertNotEquals(null, unexpected, actual, delta); in assertNotEquals() 264 static public void assertNotEquals(float unexpected, float actual, float delta) { in assertNotEquals() argument 265 assertNotEquals(null, unexpected, actual, delta); in assertNotEquals() 468 double[] actuals, double delta) throws ArrayComparisonFailure { in assertArrayEquals() argument 469 new InexactComparisonCriteria(delta).arrayEquals(message, expecteds, actuals); in assertArrayEquals() 482 public static void assertArrayEquals(double[] expecteds, double[] actuals, double delta) { in assertArrayEquals() argument 483 assertArrayEquals(null, expecteds, actuals, delta); in assertArrayEquals() [all …]
|
/external/libxaac/decoder/ |
D | ixheaacd_mps_smoothing.c | 36 int delta, one_minus_delta; in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() local 46 delta = self->param_slot_diff[ps] * self->inv_smoothing_time[ps]; in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 47 one_minus_delta = 1073741824 - delta; in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 55 (ixheaacd_mult32(delta, self->m1_param_re[ps][pb][row][col]) + in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 60 (ixheaacd_mult32(delta, self->m1_param_im[ps][pb][row][col]) + in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 65 (ixheaacd_mult32(delta, self->m2_decor_re[ps][pb][row][col]) + in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 70 (ixheaacd_mult32(delta, self->m2_decor_im[ps][pb][row][col]) + in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 75 (ixheaacd_mult32(delta, self->m2_resid_re[ps][pb][row][col]) + in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 80 (ixheaacd_mult32(delta, self->m2_resid_im[ps][pb][row][col]) + in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() 90 delta = self->param_slot_diff[ps] * self->inv_smoothing_time[ps]; in ixheaacd_mps_pre_matrix_mix_matrix_smoothing() [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/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/freetype/src/pshinter/ |
D | pshglob.c | 155 FT_Int reference, delta; in psh_blues_set_zones_0() local 166 delta = read[0] - reference; in psh_blues_set_zones_0() 175 delta = read[1] - reference; in psh_blues_set_zones_0() 196 if ( delta < 0 ) in psh_blues_set_zones_0() 198 if ( delta < delta0 ) in psh_blues_set_zones_0() 199 zone->org_delta = delta; in psh_blues_set_zones_0() 203 if ( delta > delta0 ) in psh_blues_set_zones_0() 204 zone->org_delta = delta; in psh_blues_set_zones_0() 214 zone->org_delta = delta; in psh_blues_set_zones_0() 279 FT_Int delta; in psh_blues_set_zones() local [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/ |
D | PunycodeReference.java | 124 private static int adapt(int delta, int numpoints, boolean firsttime ){ in adapt() argument 127 delta = (firsttime==true) ? delta / damp : delta >> 1; in adapt() 129 delta += delta / numpoints; in adapt() 131 for (k = 0; delta > ((base - tmin) * tmax) / 2; k += base) { in adapt() 132 delta /= base - tmin; in adapt() 135 return k + (base - tmin + 1) * delta / (delta + skew); in adapt() 145 int delta, h, b, out, max_out, bias, j, q, k, t; in encode() local 150 delta = out = 0; in encode() 189 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in encode() 190 delta += (m - n) * (h + 1); in encode() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/ |
D | PunycodeReference.java | 121 private static int adapt(int delta, int numpoints, boolean firsttime ){ in adapt() argument 124 delta = (firsttime==true) ? delta / damp : delta >> 1; in adapt() 126 delta += delta / numpoints; in adapt() 128 for (k = 0; delta > ((base - tmin) * tmax) / 2; k += base) { in adapt() 129 delta /= base - tmin; in adapt() 132 return k + (base - tmin + 1) * delta / (delta + skew); in adapt() 142 int delta, h, b, out, max_out, bias, j, q, k, t; in encode() local 147 delta = out = 0; in encode() 186 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in encode() 187 delta += (m - n) * (h + 1); in encode() [all …]
|
/external/adhd/cras/src/tests/ |
D | timing_unittest.cc | 123 struct timespec delta; in TEST_F() local 124 subtract_timespecs(&dev_time, &start, &delta); in TEST_F() 127 EXPECT_EQ(delta.tv_sec, 0); in TEST_F() 128 EXPECT_LT(delta.tv_nsec, 25000000 + 5000 * 1000); in TEST_F() 129 EXPECT_GT(delta.tv_nsec, 25000000 - 5000 * 1000); in TEST_F() 154 struct timespec delta; in TEST_F() local 155 subtract_timespecs(&dev_time, &start, &delta); in TEST_F() 157 EXPECT_EQ(delta.tv_sec, 0); in TEST_F() 158 EXPECT_LT(delta.tv_nsec, 5000000 + 5000 * 1000); in TEST_F() 159 EXPECT_GT(delta.tv_nsec, 5000000 - 5000 * 1000); in TEST_F() [all …]
|
/external/u-boot/test/ |
D | time_ut.c | 48 long delta; in test_timer_get_us() local 56 delta = next - prev; in test_timer_get_us() 57 if (delta < 0) { in test_timer_get_us() 61 } else if (delta != 0) { in test_timer_get_us() 62 if (delta < min) in test_timer_get_us() 63 min = delta; in test_timer_get_us() 103 ulong start, delta; in test_udelay() local 109 delta = get_timer(start); in test_udelay() 110 error = delta - 1000; in test_udelay() 112 __func__, delta, error); in test_udelay()
|
/external/icu/icu4c/source/i18n/ |
D | fphdlimp.cpp | 25 void FieldPositionHandler::setShift(int32_t delta) { in setShift() argument 26 fShift = delta; in setShift() 48 FieldPositionOnlyHandler::shiftLast(int32_t delta) { in shiftLast() argument 49 if (delta != 0 && pos.getField() != FieldPosition::DONT_CARE && pos.getBeginIndex() != -1) { in shiftLast() 50 pos.setBeginIndex(delta + pos.getBeginIndex()); in shiftLast() 51 pos.setEndIndex(delta + pos.getEndIndex()); in shiftLast() 94 FieldPositionIteratorHandler::shiftLast(int32_t delta) { in shiftLast() argument 95 if (U_SUCCESS(status) && delta != 0) { in shiftLast() 99 vec->setElementAt(delta + vec->elementAti(i), i); in shiftLast() 101 vec->setElementAt(delta + vec->elementAti(i), i); in shiftLast()
|