Home
last modified time | relevance | path

Searched refs:divmod (Results 1 – 25 of 65) sorted by relevance

123

/external/autotest/client/cros/video/
Dscreenshot_file_namer.py54 hours, remainder = divmod(time_delta_value.total_seconds(), 3600)
56 minutes, seconds = divmod(remainder, 60)
/external/python/cpython2/Lib/
Drandom.py683 a, x = divmod(a, 30268)
684 a, y = divmod(a, 30306)
685 a, z = divmod(a, 30322)
772 t, x = divmod(t, 256)
773 t, y = divmod(t, 256)
774 t, z = divmod(t, 256)
795 a, x = divmod(a, 256)
796 a, y = divmod(a, 256)
797 a, z = divmod(a, 256)
Dbase64.py148 quanta, leftover = divmod(len(s), 5)
203 quanta, leftover = divmod(len(s), 8)
Dformatter.py145 counter, x = divmod(counter-1, 26)
159 counter, x = divmod(counter, 10)
/external/python/cpython2/Lib/test/
Dtest_builtin.py330 self.assertEqual(divmod(12, 7), (1, 5))
331 self.assertEqual(divmod(-12, 7), (-2, 2))
332 self.assertEqual(divmod(12, -7), (-2, -2))
333 self.assertEqual(divmod(-12, -7), (1, -5))
335 self.assertEqual(divmod(12L, 7L), (1L, 5L))
336 self.assertEqual(divmod(-12L, 7L), (-2L, 2L))
337 self.assertEqual(divmod(12L, -7L), (-2L, -2L))
338 self.assertEqual(divmod(-12L, -7L), (1L, -5L))
340 self.assertEqual(divmod(12, 7L), (1, 5L))
341 self.assertEqual(divmod(-12, 7L), (-2, 2L))
[all …]
Dtest_binop.py186 return divmod(other, self)
190 return divmod(self, other)[1]
194 return divmod(other, self)[1]
Dtest_strtod.py57 q, r = divmod(a, b)
157 e, m = divmod(bits, 2**52)
Dtest_bufio.py49 q, r = divmod(length, len(pattern))
Dtest_decimal.py651 self.assertEqual(divmod(E(), Decimal(10)), 'divmod 10')
652 self.assertEqual(divmod(Decimal(10), E()), '10 rdivmod')
1125 (p, q) = divmod(d1, d2)
1132 (p, q) = divmod(d1, 4)
1139 (p, q) = divmod(7, d1)
1890 d = c.divmod(Decimal(1), Decimal(2))
1891 self.assertEqual(c.divmod(1, 2), d)
1892 self.assertEqual(c.divmod(Decimal(1), 2), d)
1893 self.assertEqual(c.divmod(1, Decimal(2)), d)
1894 self.assertRaises(TypeError, c.divmod, '1', 2)
[all …]
Dtest_class.py195 divmod(testme,1)
199 divmod(1, testme)
Dtest_long.py132 q, r = divmod(x, y)
299 x, r = divmod(x, base)
699 expected = divmod(longx, longy)
700 got = divmod(longx, longy)
Dtest_long_future.py43 q, r = divmod(a, b)
/external/clang/utils/
DFuzzTest46 index,picked_position = divmod(index, self.num_positions)
53 index,position = divmod(index, self.num_positions)
60 index,insert_index = divmod(index, self.num_insert_strings)
/external/python/cpython2/Lib/email/
Dbase64mime.py54 groups_of_3, leftover = divmod(len(s), 3)
Dutils.py152 hours, minutes = divmod(abs(offset), 3600)
/external/python/cpython2/Lib/plat-irix5/
Dreadcd.py72 min, block = divmod(block, 75*60)
73 sec, frame = divmod(block, 75)
/external/python/cpython2/Lib/plat-irix6/
Dreadcd.py72 min, block = divmod(block, 75*60)
73 sec, frame = divmod(block, 75)
/external/vixl/tools/
Dprinter.py109 minutes, seconds = divmod(time.time() - start_time, 60)
/external/autotest/client/site_tests/hardware_TPMTakeOwnership/
Dhardware_TPMTakeOwnership.py128 sec, ms = divmod(v/1000, 1000)
/external/sonivox/jet_tools/JetCreator/
DJetUtils.py687 m,s=divmod(s,60)
688 h,m=divmod(m,60)
689 d,h=divmod(h,24)
/external/python/cpython2/Lib/unittest/test/
Dtest_case.py732 [], [divmod, 'x', 1, 5j, 2j, frozenset()])
736 self.assertItemsEqual([1, 'x', divmod, []], [divmod, [], 'x', 1])
738 [], [divmod, [], 'x', 1, 5j, 2j, set()])
/external/python/cpython2/Lib/plat-mac/
DMiniAEFrame.py174 x, c = divmod(x, 256)
/external/python/cpython2/Demo/pdist/
Dcmptree.py37 mins, secs = divmod(dt, 60)
/external/python/cpython2/Demo/rpc/
Drpc.py191 offset, ss = divmod(ss + offset, 60)
192 offset, mm = divmod(mm + offset, 60)
193 offset, hh = divmod(hh + offset, 24)
/external/python/cpython2/Doc/c-api/
Dnumber.rst66 .. index:: builtin: divmod
68 See the built-in function :func:`divmod`. Returns *NULL* on failure. This is
69 the equivalent of the Python expression ``divmod(o1, o2)``.

123