/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
H A D | double_const.py | 23 diff = abs(x - x2)
24 # If diff is no larger than 3 ULP (wrt x2), then diff/8 is no larger
25 # than 0.375 ULP, so adding diff/8 to x2 should have no effect.
26 if x2 + (diff / 8.) != x2:
|
H A D | test_difflib.py | 64 diff = list(difflib.Differ().compare(["\tI am a buggy"],["\t\tI am a bug"]))
65 self.assertEqual("- \tI am a buggy", diff[0])
66 self.assertEqual("? --\n", diff[1])
67 self.assertEqual("+ \t\tI am a bug", diff[2])
68 self.assertEqual("? +\n", diff[3])
157 '<h2>Context (first diff within numlines=5(default))</h2>',
159 '<h2>Context (first diff after numlines=5(default))</h2>',
223 # Per the diff spec at http://www.unix.org/single_unix_specification/
240 # Per the diff spec at http://www.unix.org/single_unix_specification/
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/ |
H A D | clockres.py | 30 diff = values[i+1] - values[i]
31 if diff < min_diff:
32 min_diff = diff
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
H A D | diff.py | 16 parser.add_option("-c", action="store_true", default=False, help='Produce a context format diff (default)')
17 parser.add_option("-u", action="store_true", default=False, help='Produce a unified format diff')
18 parser.add_option("-m", action="store_true", default=False, help='Produce HTML side by side diff (can use -c and -l in conjunction)')
19 parser.add_option("-n", action="store_true", default=False, help='Produce a ndiff format diff')
38 diff = difflib.unified_diff(fromlines, tolines, fromfile, tofile, fromdate, todate, n=n)
40 diff = difflib.ndiff(fromlines, tolines)
42 diff = difflib.HtmlDiff().make_file(fromlines,tolines,fromfile,tofile,context=options.c,numlines=n)
44 diff = difflib.context_diff(fromlines, tolines, fromfile, tofile, fromdate, todate, n=n)
46 sys.stdout.writelines(diff)
|
H A D | reindent.py | 230 diff = want - have
231 if diff == 0 or have == 0:
235 if diff > 0:
239 after.append(" " * diff + line)
241 remove = min(getlspace(line), -diff)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/ |
H A D | util.py | 120 diff = _Mismatch(cnt_s, cnt_t, elem)
121 result.append(diff)
131 diff = _Mismatch(0, cnt_t, elem)
132 result.append(diff)
150 diff = _Mismatch(cnt_s, cnt_t, elem)
151 result.append(diff)
154 diff = _Mismatch(0, cnt_t, elem)
155 result.append(diff)
|
H A D | case.py | 166 # This attribute sets the maximum length of a diff in failure messages
722 def _truncateMessage(self, message, diff):
724 if max_diff is None or len(diff) <= max_diff:
725 return message + diff
726 return message + (DIFF_OMITTED % len(diff))
827 diff = ('\n' + '\n'.join(difflib.ndiff(
830 standardMsg = self._truncateMessage(standardMsg, diff)
893 lines = ['First has %d, Second has %d: %r' % diff for diff in differences]
918 diff [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/ |
H A D | pytree_idempotency.py | 30 if not diff(fn, tree):
49 if diff(fn, tree):
69 if diff(fn, tree):
80 def diff(fn, tree):
function 87 return os.system("diff -u %s @" % fn)
|
H A D | test_parser.py | 175 if diff(filepath, new, encoding):
217 def diff(fn, result, encoding):
function 225 return os.system('diff -u "%s" @' % fn)
|
/device/google/dragon/audio/hal/dsp/tests/ |
H A D | cmpraw.c | 27 double diff = 0; local 48 diff += fabs(data1[i] - data2[i]); 52 printf("avg diff = %g, max diff = %g, changed = %.3f%%\n", 53 diff / n, maxdiff * 32768, changed*100.0f/n);
|
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/ |
H A D | fgetstr.c | 146 size_t diff;
local 165 diff = p - fp->_p;
166 len += diff;
170 diff);
171 fp->_r -= (int)diff;
|
/device/linaro/bootloader/edk2/StdLib/LibC/Time/ |
H A D | strftime.c | 471 int diff;
local 477 diff = (int)t->TM_GMTOFF;
501 diff = -timezone;
507 diff = -altzone;
537 diff = (intmax_t)gct - (intmax_t)lct;
541 if (diff < 0) {
543 diff = -diff;
546 diff /= 60;
547 pt = _conv((diff/6 [all...] |
/device/asus/fugu/power/ |
H A D | power.c | 145 uint64_t diff; local 153 diff = timespec_to_us(&diff_time); 155 ALOGV("POWER_HINT_INTERACTION: diff=%llu", diff); 157 if (diff > mod->pulse_duration) {
|
/device/google/marlin/camera/usbcamcore/src/ |
H A D | QCameraMjpegDecode.cpp | 478 int diff; local 480 if (mjpegd_timer_get_elapsed(&os_timer, &diff, 0) < 0) { 485 ALOGI("%s: decoder_test: decoding aborted successfully after %d ms", __func__, diff); 491 "decode time: %d ms", __func__, diff); 496 total_time += diff; 498 __func__, diff, i+1, total_time, total_time/(i+1)); 665 long diff; local 671 diff = (long)(now.tv_sec - p_timer->tv_sec) * 1000; 672 diff += (long)(now.tv_nsec - p_timer->tv_nsec) / 1000000; 673 *elapsed_in_ms = (int)diff; [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/ |
H A D | rrcs.py | 35 print " diff # diff rcs file and work file"
97 def diff(x, copts, fn):
function 108 print 'diff %s -r%s %s' % (flags, x.head(fn), fn)
109 sts = os.system('diff %s %s %s' % (flags, tf.name, fn))
156 'diff': ('c', diff),
|
H A D | rcvs.py | 21 # - cvs diff -rREVA -rREVB
156 def diff(self, opts = []):
member in class:MyFile 178 print 'diff %s -r%s %s' % (flags, rev, fn)
179 sts = os.system('diff %s %s %s' % (flags, tf.name, fn))
293 def diff(self, files, opts):
member in class:RCVS 295 e.diff(opts)
432 """diff [difflags] [file] ..."""
433 self.cvs.diff(files, opts)
|
/device/lge/bullhead/ |
H A D | releasetools.py | 100 diff = common.Difference(tf, sf, diff_program="bsdiff") 101 common.ComputeDifferences([diff]) 102 _, _, d = diff.GetPatch()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
H A D | timemodule.c | 106 double diff;
local 118 diff = x - (double)result;
119 if (diff <= -1.0 || diff >= 1.0) {
170 double diff;
local 184 diff = (double)(now.QuadPart - ctrStart.QuadPart);
185 return PyFloat_FromDouble(diff / divisor);
|
H A D | datetimemodule.c | 1441 diff_to_bool(int diff, int op)
argument 1447 case Py_EQ: istrue = diff == 0; break;
1448 case Py_NE: istrue = diff != 0; break;
1449 case Py_LE: istrue = diff <= 0; break;
1450 case Py_GE: istrue = diff >= 0; break;
1451 case Py_LT: istrue = diff < 0; break;
1452 case Py_GT: istrue = diff > 0; break;
1762 int diff = 42; /* nonsense */
local 1765 diff = GET_TD_DAYS(self) - GET_TD_DAYS(other);
1766 if (diff 2612 int diff = 42; /* nonsense */ local 3343 int diff; local 4272 int diff; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
H A D | timemodule.c | 106 double diff;
local 118 diff = x - (double)result;
119 if (diff <= -1.0 || diff >= 1.0) {
170 double diff;
local 184 diff = (double)(now.QuadPart - ctrStart.QuadPart);
185 return PyFloat_FromDouble(diff / divisor);
|
H A D | datetimemodule.c | 1441 diff_to_bool(int diff, int op)
argument 1447 case Py_EQ: istrue = diff == 0; break;
1448 case Py_NE: istrue = diff != 0; break;
1449 case Py_LE: istrue = diff <= 0; break;
1450 case Py_GE: istrue = diff >= 0; break;
1451 case Py_LT: istrue = diff < 0; break;
1452 case Py_GT: istrue = diff > 0; break;
1762 int diff = 42; /* nonsense */
local 1765 diff = GET_TD_DAYS(self) - GET_TD_DAYS(other);
1766 if (diff 2612 int diff = 42; /* nonsense */ local 3343 int diff; local 4272 int diff; local [all...] |
/device/linaro/bootloader/edk2/BaseTools/Scripts/ |
H A D | PatchCheck.py | 237 """Checks the contents of a git diff."""
239 def __init__(self, diff):
242 self.lines = diff.splitlines(True)
262 if line.startswith('diff --git'):
270 if line.startswith('diff --git'):
271 self.format_error('diff found after end of patch')
277 if line.startswith('diff --git'):
281 self.format_error("didn't find diff command")
298 self.format_error("didn't find diff hunk marker (@@)")
362 ^ diff \ [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/ |
H A D | test_case.py | 597 diff = '\n'.join(difflib.ndiff(pprint.pformat(seq1).splitlines(),
600 omitted = unittest.case.DIFF_OMITTED % (len(diff) + 1,)
602 self.maxDiff = len(diff)//2
609 self.assertTrue(len(msg) < len(diff))
612 self.maxDiff = len(diff) * 2
619 self.assertTrue(len(msg) > len(diff))
629 self.assertTrue(len(msg) > len(diff))
648 def truncate(msg, diff):
660 def truncate(msg, diff):
673 # disable madDiff to get diff marker [all...] |
/device/linaro/bootloader/edk2/StdLib/LibC/gdtoa/ |
H A D | gdtoaimp.h | 509 #define diff __diff_D2A
macro 561 extern Bigint *diff (Bigint*, Bigint*);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/ |
H A D | lstrlib.c | 920 lua_Number diff = n - (lua_Number)ni;
local 921 luaL_argcheck(L, -1 < diff && diff < 1, arg,
930 lua_Number diff = n - (lua_Number)ni;
local 931 luaL_argcheck(L, -1 < diff && diff < 1, arg,
|