Home
last modified time | relevance | path

Searched refs:reduce (Results 1 – 25 of 67) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/decimaltestdata/
DddReduce.decTest29 ddred001 reduce '1' -> '1'
30 ddred002 reduce '-1' -> '-1'
31 ddred003 reduce '1.00' -> '1'
32 ddred004 reduce '-1.00' -> '-1'
33 ddred005 reduce '0' -> '0'
34 ddred006 reduce '0.00' -> '0'
35 ddred007 reduce '00.0' -> '0'
36 ddred008 reduce '00.00' -> '0'
37 ddred009 reduce '00' -> '0'
38 ddred010 reduce '0E+1' -> '0'
[all …]
DdqReduce.decTest30 dqred001 reduce '1' -> '1'
31 dqred002 reduce '-1' -> '-1'
32 dqred003 reduce '1.00' -> '1'
33 dqred004 reduce '-1.00' -> '-1'
34 dqred005 reduce '0' -> '0'
35 dqred006 reduce '0.00' -> '0'
36 dqred007 reduce '00.0' -> '0'
37 dqred008 reduce '00.00' -> '0'
38 dqred009 reduce '00' -> '0'
39 dqred010 reduce '0E+1' -> '0'
[all …]
Dreduce.decTest2 -- reduce.decTest -- remove trailing zeros --
30 redx001 reduce '1' -> '1'
31 redx002 reduce '-1' -> '-1'
32 redx003 reduce '1.00' -> '1'
33 redx004 reduce '-1.00' -> '-1'
34 redx005 reduce '0' -> '0'
35 redx006 reduce '0.00' -> '0'
36 redx007 reduce '00.0' -> '0'
37 redx008 reduce '00.00' -> '0'
38 redx009 reduce '00' -> '0'
[all …]
Dtestall.decTest62 dectest: reduce -- [was called normalize]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dgetpath.c135 reduce(char *dir) in reduce() function
302 reduce(prefix); in search_for_prefix()
342 reduce(exec_prefix); in search_for_exec_prefix()
355 reduce(exec_prefix); in search_for_exec_prefix()
472 reduce(argv0_path); in calculate_path()
500 reduce(argv0_path); in calculate_path()
508 reduce(argv0_path); in calculate_path()
521 reduce(prefix); in calculate_path()
526 reduce(zip_path); in calculate_path()
527 reduce(zip_path); in calculate_path()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
Dgetpath.c114 reduce(char *dir) in reduce() function
239 reduce(filename); // and isolate the path component in isxfile()
455 reduce(argv0_path); in calculate_path()
475 reduce(zip_path); in calculate_path()
499 reduce(prefix); in calculate_path()
500 reduce(prefix); in calculate_path()
600 reduce(exec_prefix); in calculate_path()
601 reduce(exec_prefix); in calculate_path()
602 reduce(exec_prefix); in calculate_path()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Efi/
Dgetpath.c112 reduce(char *dir) in reduce() function
308 reduce(filename); // and isolate the path component in isxfile()
524 reduce(argv0_path); in calculate_path()
544 reduce(zip_path); in calculate_path()
568 reduce(prefix); in calculate_path()
569 reduce(prefix); in calculate_path()
669 reduce(exec_prefix); in calculate_path()
670 reduce(exec_prefix); in calculate_path()
671 reduce(exec_prefix); in calculate_path()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_functools.py320 reduce = functools.reduce
321 self.assertEqual(reduce(lambda x, y: x+y, ['a', 'b', 'c'], ''), 'abc')
323 reduce(lambda x, y: x+y, [['a', 'c'], [], ['d', 'w']], []),
326 self.assertEqual(reduce(lambda x, y: x*y, range(2,8), 1), 5040)
328 reduce(lambda x, y: x*y, range(2,21), 1L),
331 self.assertEqual(reduce(lambda x, y: x+y, Squares(10)), 285)
332 self.assertEqual(reduce(lambda x, y: x+y, Squares(10), 0), 285)
333 self.assertEqual(reduce(lambda x, y: x+y, Squares(0), 0), 0)
334 self.assertRaises(TypeError, reduce)
335 self.assertRaises(TypeError, reduce, 42, 42)
[all …]
Dtest_builtin.py1232 self.assertEqual(reduce(add, ['a', 'b', 'c'], ''), 'abc')
1234 reduce(add, [['a', 'c'], [], ['d', 'w']], []),
1237 self.assertEqual(reduce(lambda x, y: x*y, range(2,8), 1), 5040)
1239 reduce(lambda x, y: x*y, range(2,21), 1L),
1242 self.assertEqual(reduce(add, Squares(10)), 285)
1243 self.assertEqual(reduce(add, Squares(10), 0), 285)
1244 self.assertEqual(reduce(add, Squares(0), 0), 0)
1245 self.assertRaises(TypeError, reduce)
1246 self.assertRaises(TypeError, reduce, 42)
1247 self.assertRaises(TypeError, reduce, 42, 42)
[all …]
Dtest_iter.py519 self.assertEqual(reduce(add, SequenceClass(5)), 10)
520 self.assertEqual(reduce(add, SequenceClass(5), 42), 52)
521 self.assertRaises(TypeError, reduce, add, SequenceClass(0))
522 self.assertEqual(reduce(add, SequenceClass(0), 42), 42)
523 self.assertEqual(reduce(add, SequenceClass(1)), 0)
524 self.assertEqual(reduce(add, SequenceClass(1), 42), 42)
527 self.assertEqual(reduce(add, d), "".join(d.keys()))
Dtest_random.py9 from functools import reduce
80 return reduce(int.__mul__, xrange(1, n), 1)
Dtest_py3kwarn.py408 self.assertRaises(DeprecationWarning, reduce, add, range(10))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcsv.py7 from functools import reduce
252 quotechar = reduce(lambda a, b, quotes = quotes:
256 delim = reduce(lambda a, b, delims = delims:
329 modes[char] = reduce(lambda a, b: a[1] > b[1] and a or b,
335 - reduce(lambda a, b: (0, a[1] + b[1]),
Dfunctools.py10 from _functools import partial, reduce
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcsv.py7 from functools import reduce
248 quotechar = reduce(lambda a, b, quotes = quotes:
252 delim = reduce(lambda a, b, delims = delims:
324 modes[char] = reduce(lambda a, b: a[1] > b[1] and a or b,
330 - reduce(lambda a, b: (0, a[1] + b[1]),
Dpickle.py299 reduce = dispatch_table.get(t)
300 if reduce:
301 rv = reduce(obj)
304 reduce = getattr(obj, "__reduce_ex__", None)
305 if reduce:
306 rv = reduce(self.proto)
308 reduce = getattr(obj, "__reduce__", None)
309 if reduce:
310 rv = reduce()
322 raise PicklingError("%s must return string or tuple" % reduce)
[all …]
Dfunctools.py10 from _functools import partial, reduce
Ddifflib.py37 from functools import reduce
658 matches = reduce(lambda sum, triple: sum + triple[-1],
/device/linaro/bootloader/edk2/CorebootModulePkg/
DCorebootModulePkg.dec56 ## Used to help reduce fragmentation in the EFI memory map
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/
Dpybench.py374 total_time = reduce(operator.add, self.times, 0.0)
581 total_time = reduce(operator.add, self.roundtimes, 0.0)
/device/google/crosshatch/
Dinit.power.rc73 #Enable suspend to idle mode to reduce latency during suspend/resume
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/dlg/
Ddlg1.txt28 cantly reduce the size of the dfa produced for lexical
/device/google/bonito/
Dinit.power.rc79 #Enable suspend to idle mode to reduce latency during suspend/resume
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ia32/
DProcessorAsms.Asm22 ; did not know of "pragma" mechanism in MASM and I did not want to reduce the warning level.
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/i18n/
Dpygettext.py469 if reduce(operator.__add__, v.values()):

123