Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 25 of 59) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dunicodectype.c60 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 …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dunicodectype.c60 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 …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/
Dpunycode.py59 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 …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/
Dpunycode.py59 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 …]
/device/linaro/bootloader/arm-trusted-firmware/plat/hikey/drivers/
Dsp804_timer.c85 unsigned int start, cnt, delta, delta_us; in udelay() local
94 delta = 0xffffffff - cnt; in udelay()
95 delta += start; in udelay()
97 delta = start - cnt; in udelay()
98 delta_us = (delta * 10) / 192; in udelay()
104 unsigned int start, cnt, delta, delta_ms; in mdelay() local
114 delta = 0xffffffff - cnt; in mdelay()
115 delta += start; in mdelay()
117 delta = start - cnt; in mdelay()
118 delta_ms = delta / 19200; in mdelay()
/device/google/contexthub/firmware/os/algos/calibration/gyroscope/
Dgyro_stillness_detect.c61 float delta = 0; in gyroStillDetUpdate() local
109 delta = (x - gyro_still_det->assumed_mean_x); in gyroStillDetUpdate()
110 gyro_still_det->win_mean_x += delta; in gyroStillDetUpdate()
111 gyro_still_det->acc_var_x += delta * delta; in gyroStillDetUpdate()
113 delta = (y - gyro_still_det->assumed_mean_y); in gyroStillDetUpdate()
114 gyro_still_det->win_mean_y += delta; in gyroStillDetUpdate()
115 gyro_still_det->acc_var_y += delta * delta; in gyroStillDetUpdate()
117 delta = (z - gyro_still_det->assumed_mean_z); in gyroStillDetUpdate()
118 gyro_still_det->win_mean_z += delta; in gyroStillDetUpdate()
119 gyro_still_det->acc_var_z += delta * delta; in gyroStillDetUpdate()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
Dtest_assertions.py31 self.assertAlmostEqual(1.1, 1.0, delta=0.5)
32 self.assertAlmostEqual(1.0, 1.1, delta=0.5)
33 self.assertNotAlmostEqual(1.1, 1.0, delta=0.05)
34 self.assertNotAlmostEqual(1.0, 1.1, delta=0.05)
37 1.1, 1.0, delta=0.05)
39 1.1, 1.0, delta=0.5)
42 1.1, 1.0, places=2, delta=2)
44 1.1, 1.0, places=2, delta=2)
49 delta=datetime.timedelta(seconds=20))
51 delta=datetime.timedelta(seconds=5))
/device/linaro/bootloader/edk2/StdLib/LibC/gdtoa/
Dstrtod.c100 Bigint *bd = NULL, *bs = NULL, *delta = NULL; /* pacify gcc */ in strtod() local
641 delta = diff(bb, bd); in strtod()
642 if (delta == NULL) in strtod()
644 dsign = delta->sign; in strtod()
645 delta->sign = 0; in strtod()
646 i = cmp(delta, bs); in strtod()
651 if (!delta->x[0] && delta->wds <= 1) { in strtod()
675 delta = lshift(delta,Log2P); in strtod()
676 if (cmp(delta, bs) <= 0) in strtod()
700 adj = ratio(delta, bs); in strtod()
[all …]
Dstrtodg.c320 Bigint *ab, *bb, *bb1, *bd, *bd0, *bs, *delta, *rvb, *rvb0; in strtodg() local
730 delta = diff(bb, bd); in strtodg()
731 if (delta == NULL) in strtodg()
733 if (delta->wds <= 1 && !delta->x[0]) in strtodg()
735 dsign = delta->sign; in strtodg()
736 delta->sign = finished = 0; in strtodg()
738 i = cmp(delta, bs); in strtodg()
774 delta = lshift(delta,1); in strtodg()
775 if (delta == NULL) in strtodg()
777 if (cmp(delta, bs) > 0) { in strtodg()
[all …]
Ddtoa.c136 Bigint *b, *b1, *delta, *mhi, *S; local
658 delta = diff(S, mhi);
659 if (delta == NULL)
661 jj1 = delta->sign ? 1 : cmp(b, delta);
662 Bfree(delta);
Dgdtoa.c171 Bigint *b, *b1, *delta, *mlo, *mhi, *mhi1, *S; in gdtoa() local
676 delta = diff(S, mhi); in gdtoa()
677 if (delta == NULL) in gdtoa()
679 jj1 = delta->sign ? 1 : cmp(b, delta); in gdtoa()
680 Bfree(delta); in gdtoa()
/device/google/contexthub/firmware/os/algos/
Dap_hub_sync.c47 int64_t delta = apTime - hubTime; in apHubSyncAddDelta() local
58 sync->windowMax = delta; in apHubSyncAddDelta()
63 sync->windowMax = (delta > sync->windowMax) ? delta : sync->windowMax; in apHubSyncAddDelta()
/device/linaro/bootloader/arm-trusted-firmware/plat/hikey/
Dplat_pm.c210 unsigned int start, cnt, delta, delta_ms; in hikey_system_off() local
239 delta = 0xffffffff - cnt; in hikey_system_off()
240 delta += start; in hikey_system_off()
242 delta = start - cnt; in hikey_system_off()
243 delta_ms = delta / 19200; in hikey_system_off()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/
DLzFind.c338 UInt32 delta = pos - curMatch; in Hc_GetMatchesSpec() local
339 if (cutValue-- == 0 || delta >= _cyclicBufferSize) in Hc_GetMatchesSpec()
342 const Byte *pb = cur - delta; in Hc_GetMatchesSpec()
343 … curMatch = son[_cyclicBufferPos - delta + ((delta > _cyclicBufferPos) ? _cyclicBufferSize : 0)]; in Hc_GetMatchesSpec()
353 *distances++ = delta - 1; in Hc_GetMatchesSpec()
371 UInt32 delta = pos - curMatch; in GetMatchesSpec1() local
372 if (cutValue-- == 0 || delta >= _cyclicBufferSize) in GetMatchesSpec1()
378 …CLzRef *pair = son + ((_cyclicBufferPos - delta + ((delta > _cyclicBufferPos) ? _cyclicBufferSize … in GetMatchesSpec1()
379 const Byte *pb = cur - delta; in GetMatchesSpec1()
390 *distances++ = delta - 1; in GetMatchesSpec1()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/
DLzFind.c338 UInt32 delta = pos - curMatch; in Hc_GetMatchesSpec() local
339 if (cutValue-- == 0 || delta >= _cyclicBufferSize) in Hc_GetMatchesSpec()
342 const Byte *pb = cur - delta; in Hc_GetMatchesSpec()
343 … curMatch = son[_cyclicBufferPos - delta + ((delta > _cyclicBufferPos) ? _cyclicBufferSize : 0)]; in Hc_GetMatchesSpec()
353 *distances++ = delta - 1; in Hc_GetMatchesSpec()
371 UInt32 delta = pos - curMatch; in GetMatchesSpec1() local
372 if (cutValue-- == 0 || delta >= _cyclicBufferSize) in GetMatchesSpec1()
378 …CLzRef *pair = son + ((_cyclicBufferPos - delta + ((delta > _cyclicBufferPos) ? _cyclicBufferSize … in GetMatchesSpec1()
379 const Byte *pb = cur - delta; in GetMatchesSpec1()
390 *distances++ = delta - 1; in GetMatchesSpec1()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/
DLzFind.c319 UInt32 delta = pos - curMatch; in Hc_GetMatchesSpec() local
320 if (cutValue-- == 0 || delta >= _cyclicBufferSize) in Hc_GetMatchesSpec()
323 const Byte *pb = cur - delta; in Hc_GetMatchesSpec()
324 … curMatch = son[_cyclicBufferPos - delta + ((delta > _cyclicBufferPos) ? _cyclicBufferSize : 0)]; in Hc_GetMatchesSpec()
334 *distances++ = delta - 1; in Hc_GetMatchesSpec()
352 UInt32 delta = pos - curMatch; in GetMatchesSpec1() local
353 if (cutValue-- == 0 || delta >= _cyclicBufferSize) in GetMatchesSpec1()
359 …CLzRef *pair = son + ((_cyclicBufferPos - delta + ((delta > _cyclicBufferPos) ? _cyclicBufferSize … in GetMatchesSpec1()
360 const Byte *pb = cur - delta; in GetMatchesSpec1()
371 *distances++ = delta - 1; in GetMatchesSpec1()
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/FdtLib/
Dfdt_rw.c113 int delta = (newn - oldn) * sizeof(*p); in _fdt_splice_mem_rsv() local
118 fdt_set_off_dt_struct(fdt, fdt_off_dt_struct(fdt) + delta); in _fdt_splice_mem_rsv()
119 fdt_set_off_dt_strings(fdt, fdt_off_dt_strings(fdt) + delta); in _fdt_splice_mem_rsv()
126 int delta = newlen - oldlen; in _fdt_splice_struct() local
133 fdt_set_size_dt_struct(fdt, fdt_size_dt_struct(fdt) + delta); in _fdt_splice_struct()
134 fdt_set_off_dt_strings(fdt, fdt_off_dt_strings(fdt) + delta); in _fdt_splice_struct()
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
DEmuThunk.c39 void (*settimer_callback)(UINT64 delta);
157 UINT64 delta; in settimer_handler() local
160 delta = ((UINT64)timeval.tv_sec * 1000) + (timeval.tv_usec / 1000) in settimer_handler()
166 ReverseGasketUint64 (settimer_callback, delta); in settimer_handler()
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/
Derr.h1111 int zzTraceOption(int delta) in zzTraceOption() argument
1113 int zzTraceOption(delta) in zzTraceOption()
1114 int delta; in zzTraceOption()
1120 zzTraceOptionValue=zzTraceOptionValue+delta;
1139 int zzTraceGuessOption(int delta) in zzTraceGuessOption() argument
1141 int zzTraceGuessOption(delta) in zzTraceGuessOption()
1142 int delta; in zzTraceGuessOption()
1149 zzTraceGuessOptionValue=zzTraceGuessOptionValue+delta;
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/
Derr.h1109 int zzTraceOption(int delta) in zzTraceOption() argument
1111 int zzTraceOption(delta) in zzTraceOption()
1112 int delta; in zzTraceOption()
1118 zzTraceOptionValue=zzTraceOptionValue+delta;
1137 int zzTraceGuessOption(int delta) in zzTraceGuessOption() argument
1139 int zzTraceGuessOption(delta) in zzTraceGuessOption()
1140 int delta; in zzTraceGuessOption()
1147 zzTraceGuessOptionValue=zzTraceGuessOptionValue+delta;
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Ddtoa.c1517 Bigint *bb, *bb1, *bd, *bd0, *bs, *delta; in _Py_dg_strtod() local
2006 delta = diff(bb, bd); in _Py_dg_strtod()
2007 if (delta == NULL) { in _Py_dg_strtod()
2014 dsign = delta->sign; in _Py_dg_strtod()
2015 delta->sign = 0; in _Py_dg_strtod()
2016 i = cmp(delta, bs); in _Py_dg_strtod()
2059 if (!delta->x[0] && delta->wds <= 1) { in _Py_dg_strtod()
2063 delta = lshift(delta,Log2P); in _Py_dg_strtod()
2064 if (delta == NULL) { in _Py_dg_strtod()
2071 if (cmp(delta, bs) > 0) in _Py_dg_strtod()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Ddtoa.c1500 Bigint *bb, *bb1, *bd, *bd0, *bs, *delta; in _Py_dg_strtod() local
1975 delta = diff(bb, bd); in _Py_dg_strtod()
1976 if (delta == NULL) { in _Py_dg_strtod()
1983 dsign = delta->sign; in _Py_dg_strtod()
1984 delta->sign = 0; in _Py_dg_strtod()
1985 i = cmp(delta, bs); in _Py_dg_strtod()
2028 if (!delta->x[0] && delta->wds <= 1) { in _Py_dg_strtod()
2032 delta = lshift(delta,Log2P); in _Py_dg_strtod()
2033 if (delta == NULL) { in _Py_dg_strtod()
2040 if (cmp(delta, bs) > 0) in _Py_dg_strtod()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/
Dcase.py521 def assertAlmostEqual(self, first, second, places=None, msg=None, delta=None): argument
536 if delta is not None and places is not None:
539 if delta is not None:
540 if abs(first - second) <= delta:
545 safe_repr(delta))
559 def assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None): argument
570 if delta is not None and places is not None:
572 if delta is not None:
573 if not (first == second) and abs(first - second) > delta:
577 safe_repr(delta))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_csv.py970 delta = 0
979 delta = rc-lastrc
982 self.assertEqual(delta < 3, True)
985 delta = 0
995 delta = rc-lastrc
998 self.assertEqual(delta < 3, True)
1001 delta = 0
1011 delta = rc-lastrc
1014 self.assertEqual(delta < 5, True)
1017 delta = 0
[all …]
Dtest_complex.py145 for delta in deltas:
146 i = n + delta
148 self.assertIs(complex.__eq__(z, i), is_equal(delta))
149 self.assertIs(complex.__ne__(z, i), not is_equal(delta))
156 check(2 ** pow, range(1, 101), lambda delta: delta % mult == 0)
157 check(2 ** pow, range(1, 101), lambda delta: False, float(i))
158 check(2 ** 53, range(-100, 0), lambda delta: True)

123