/external/python/cpython2/Lib/test/ |
D | test_xrange.py | 111 self.assertEqual(len(xrange(0, sys.maxint, sys.maxint-1)), 2) 113 self.assertRaises(OverflowError, xrange, -sys.maxint, sys.maxint) 114 self.assertRaises(OverflowError, xrange, 0, 2*sys.maxint) 116 r = xrange(-sys.maxint, sys.maxint, 2) 117 self.assertEqual(len(r), sys.maxint) 118 self.assertRaises(OverflowError, xrange, -sys.maxint-1, sys.maxint, 2) 129 M = min(sys.maxint, sys.maxsize) 155 M = min(sys.maxint, sys.maxsize)
|
D | test_sysconfig.py | 147 maxint = sys.maxint 149 sys.maxint = 2147483647 151 sys.maxint = 9223372036854775807 154 sys.maxint = maxint 167 maxint = sys.maxint 169 sys.maxint = 2147483647 171 sys.maxint = 9223372036854775807 174 sys.maxint = maxint
|
D | string_tests.py | 126 self.checkequal(0, '', 'count', '', sys.maxint, 0) 130 self.checkequal(0, '', 'count', 'xx', sys.maxint, 0) 183 self.checkequal(-1, '', 'find', '', sys.maxint, 0) 187 self.checkequal(-1, '', 'find', 'xx', sys.maxint, 0) 328 if sys.maxint < (1 << 32) and struct.calcsize('P') == 4: 330 '\ta\n\tb', 'expandtabs', sys.maxint) 343 sys.maxint-1) 376 sys.maxint-2) 397 sys.maxint-10) 442 sys.maxint-20) [all …]
|
D | test_enumerate.py | 237 enum = lambda self, i: enumerate(i, start=sys.maxint+1) 238 seq, res = 'abc', [(sys.maxint+1,'a'), (sys.maxint+2,'b'), 239 (sys.maxint+3,'c')]
|
D | test_int.py | 19 (repr(sys.maxint), sys.maxint), 100 s = repr(-1-sys.maxint) 102 self.assertEqual(x+1, -sys.maxint) 105 self.assertEqual(int(s[1:]), sys.maxint+1) 117 x = -1-sys.maxint
|
D | test_long.py | 53 (repr(sys.maxint), sys.maxint), 577 hugepos = sys.maxint 657 special = [0, 1, 2, 3, sys.maxint-1, sys.maxint, sys.maxint+1] 658 sqrt = int(math.sqrt(sys.maxint)) 883 cases.extend([0, 1, 2, sys.maxint, float(sys.maxint)])
|
D | seq_tests.py | 323 if sys.maxint <= 2147483647: 403 self.assertEqual(a.index(0, -4*sys.maxint, 4*sys.maxint), 2) 404 self.assertRaises(ValueError, a.index, 0, 4*sys.maxint,-4*sys.maxint)
|
D | test_compile.py | 296 if sys.maxint == 2147483647: 301 elif sys.maxint == 9223372036854775807: 310 self.assertIsInstance(eval("%s" % (-sys.maxint - 1)), int) 311 self.assertIsInstance(eval("%s" % (-sys.maxint - 2)), long) 313 if sys.maxint == 9223372036854775807:
|
D | test_index.py | 4 from sys import maxint 262 return maxint # cannot return long here 276 return maxint # cannot return long here 284 self.assertEqual(x[self.neg:self.pos], (maxint+minsize, maxsize))
|
D | test_itertools.py | 375 for i in (-sys.maxint-5, -sys.maxint+5 ,-10, -1, 0, 10, sys.maxint-5, sys.maxint+5): 382 for value in -3, 3, sys.maxint-5, sys.maxint+5: 434 for i in (-sys.maxint-5, -sys.maxint+5 ,-10, -1, 0, 10, sys.maxint-5, sys.maxint+5): 435 for j in (-sys.maxint-5, -sys.maxint+5 ,-10, -1, 0, 1, 10, sys.maxint-5, sys.maxint+5): 1097 start, stop, step = s.start or 0, s.stop or sys.maxint, s.step or 1
|
/external/toolchain-utils/bestflags/ |
D | flags_test.py | 33 start = random.randint(1, sys.maxint - 1) 34 end = random.randint(start + 1, sys.maxint) 73 start = random.randint(1, sys.maxint - 1) 74 end = random.randint(start + 1, sys.maxint) 89 value = random.randint(1, sys.maxint - 1)
|
D | task.py | 285 self._build_cost = sys.maxint if cost == ERROR_STRING else float(cost) 335 self._exe_cost = sys.maxint if (cost == ERROR_STRING) else float(cost)
|
/external/icu/icu4c/source/test/intltest/ |
D | punyref.cpp | 105 static const punycode_uint maxint = (punycode_uint) (-1); variable 170 for (m = maxint, j = 0; j < input_length; ++j) { in punycode_encode() 179 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in punycode_encode() 264 if (digit > (maxint - i) / w) return punycode_overflow; in punycode_decode() 269 if (w > maxint / (base - t)) return punycode_overflow; in punycode_decode() 278 if (i / (out + 1) > maxint - n) return punycode_overflow; in punycode_decode()
|
/external/python/cpython2/Demo/tkinter/guido/ |
D | ss1.py | 79 self.clearcells(0, y1, sys.maxint, y2) 82 self.clearcells(x1, 0, x2, sys.maxint) 113 self.movecells(0, y, sys.maxint, sys.maxint, 0, n) 119 self.movecells(0, y2+1, sys.maxint, sys.maxint, 0, y1-y2-1) 123 self.movecells(x, 0, sys.maxint, sys.maxint, n, 0) 129 self.movecells(x2+1, 0, sys.maxint, sys.maxint, x1-x2-1, 0) 628 self.setcorner(sys.maxint, sys.maxint) 633 self.setcorner(x, sys.maxint) 639 self.setcorner(x, sys.maxint) 644 self.setcorner(sys.maxint, y) [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/ |
D | PunycodeReference.java | 116 private static long maxint = 0xFFFFFFFFL; field in PunycodeReference 177 for (m = maxint, j = 0; j < input_length; ++j) { in encode() 186 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in encode() 346 if (digit > (maxint - i) / w) return punycode_overflow; in decode() 351 if (w > maxint / (base - t)) return punycode_overflow; in decode() 360 if (i / (out + 1) > maxint - n) return punycode_overflow; in decode()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/ |
D | PunycodeReference.java | 119 private static long maxint = 0xFFFFFFFFL; field in PunycodeReference 180 for (m = maxint, j = 0; j < input_length; ++j) { in encode() 189 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in encode() 349 if (digit > (maxint - i) / w) return punycode_overflow; in decode() 354 if (w > maxint / (base - t)) return punycode_overflow; in decode() 363 if (i / (out + 1) > maxint - n) return punycode_overflow; in decode()
|
/external/python/cpython2/Lib/ |
D | UserString.py | 65 def count(self, sub, start=0, end=sys.maxint): 83 def endswith(self, suffix, start=0, end=sys.maxint): 87 def find(self, sub, start=0, end=sys.maxint): 89 def index(self, sub, start=0, end=sys.maxint): 109 def rfind(self, sub, start=0, end=sys.maxint): 111 def rindex(self, sub, start=0, end=sys.maxint): 123 def startswith(self, prefix, start=0, end=sys.maxint):
|
D | popen2.py | 26 if inst.poll(_deadstate=sys.maxint) >= 0: 76 self.poll(_deadstate=sys.maxint)
|
/external/clang/test/PCH/ |
D | stmts.h | 93 #define maxint(a,b) ({int _a = (a), _b = (b); _a > _b ? _a : _b; }) macro 95 return maxint(++x, --y); in weird_max()
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_memfunctions.py | 14 lambda: wstring_at(u"foo", sys.maxint - 1)) 16 lambda: string_at("foo", sys.maxint - 1))
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_memfunctions.py | 15 lambda: wstring_at(u"foo", sys.maxint - 1)) 17 lambda: string_at("foo", sys.maxint - 1))
|
/external/python/futures/concurrent/futures/ |
D | thread.py | 47 t.join(sys.maxint) 159 t.join(sys.maxint)
|
/external/python/cpython2/Demo/parser/ |
D | test_unparse.py | 123 self.check_roundtrip(str(-sys.maxint-1)) 124 self.check_roundtrip("-(%s)" % (sys.maxint + 1))
|
/external/python/cpython3/Lib/test/ |
D | test_sysconfig.py | 137 maxint = sys.maxsize 144 sys.maxsize = maxint 155 maxint = sys.maxsize 162 sys.maxsize = maxint
|
/external/python/cpython2/Tools/scripts/ |
D | h2py.py | 107 UMAX = 2*(sys.maxint+1) 113 if val > sys.maxint:
|