Home
last modified time | relevance | path

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

123456

/external/python/cpython3/Lib/test/libregrtest/
Dutils.py8 seconds, ms = divmod(ms, 1000)
9 minutes, seconds = divmod(seconds, 60)
10 hours, minutes = divmod(minutes, 60)
/external/python/cpython3/Lib/
Ddatetime.py107 n400, n = divmod(n, _DI400Y)
115 n100, n = divmod(n, _DI100Y)
118 n4, n = divmod(n, _DI4Y)
122 n1, n = divmod(n, 365)
185 hh, mm = divmod(off, timedelta(hours=1))
186 mm, ss = divmod(mm, timedelta(minutes=1))
228 h, rest = divmod(offset, timedelta(hours=1))
229 m, rest = divmod(rest, timedelta(minutes=1))
442 q, r = divmod(a, b)
525 days, seconds = divmod(seconds, 24*3600)
[all …]
/external/python/cpython2/Lib/
Drandom.py685 a, x = divmod(a, 30268)
686 a, y = divmod(a, 30306)
687 a, z = divmod(a, 30322)
774 t, x = divmod(t, 256)
775 t, y = divmod(t, 256)
776 t, z = divmod(t, 256)
797 a, x = divmod(a, 256)
798 a, y = divmod(a, 256)
799 a, z = divmod(a, 256)
Dbase64.py148 quanta, leftover = divmod(len(s), 5)
203 quanta, leftover = divmod(len(s), 8)
/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))
/external/python/dateutil/dateutil/
Drrule.py844 daypos, timepos = divmod(pos, len(timeset))
846 daypos, timepos = divmod(pos-1, len(timeset))
901 div, mod = divmod(month, 12)
931 ndays, hour = divmod(hour+interval, 24)
952 nhours, minute = divmod(minute+interval, 60)
954 div, hour = divmod(hour+nhours, 24)
984 nminutes, second = divmod(second+interval, 60)
986 div, minute = divmod(minute+nminutes, 60)
989 div, hour = divmod(hour, 24)
1061 if i_gcd == 1 or divmod(num - start, i_gcd)[1] == 0:
[all …]
Drelativedelta.py220 div, mod = divmod(self.microseconds * s, 1000000)
225 div, mod = divmod(self.seconds * s, 60)
230 div, mod = divmod(self.minutes * s, 60)
235 div, mod = divmod(self.hours * s, 24)
240 div, mod = divmod(self.months * s, 12)
262 div, mod = divmod(self.months * s, 12)
/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/cpython3/Lib/unittest/test/testmock/
Dtestmagicmethods.py439 self.assertIsInstance(divmod(5, m), MagicMock)
441 self.assertEqual(divmod(m, 2), (2, 1))
443 foo = divmod(2, m)
447 bar = divmod(m, 2)
/external/python/rsa/rsa/
Drandnum.py34 nbytes, rbits = divmod(nbits, 8)
Dcommon.py102 quanta, mod = divmod(num, div)
/external/python/mock/mock/tests/
Dtestmagicmethods.py504 self.assertIsInstance(divmod(5, m), MagicMock)
506 self.assertEqual(divmod(m, 2), (2, 1))
508 foo = divmod(2, m)
512 bar = divmod(m, 2)
/external/python/cpython3/Lib/email/
Dbase64mime.py52 groups_of_3, leftover = divmod(len(bytearray), 3)
/external/python/cpython3/Lib/test/
Dtest_strtod.py56 q, r = divmod(a, b)
156 e, m = divmod(bits, 2**52)
Dtest_binop.py177 return divmod(other, self)
181 return divmod(self, other)[1]
185 return divmod(other, self)[1]
Dtest_bufio.py49 q, r = divmod(length, len(pattern))
Dtest_abstract_numbers.py37 self.assertRaises(TypeError, divmod, c1, c2)
/external/libkmsxx/py/tests/
Dctm_test.py12 i, d = divmod(ctm[x], 1)
/external/fonttools/Lib/fontTools/misc/
Dpy23.py362 quotient, remainder = divmod(number, exponent)
432 quotient, remainder = divmod(number, exponent)
/external/python/cpython2/Lib/email/
Dbase64mime.py54 groups_of_3, leftover = divmod(len(s), 3)
/external/python/cpython2/Lib/plat-irix6/
Dreadcd.py72 min, block = divmod(block, 75*60)
73 sec, frame = divmod(block, 75)
/external/python/cpython2/Lib/plat-irix5/
Dreadcd.py72 min, block = divmod(block, 75*60)
73 sec, frame = divmod(block, 75)

123456