Lines Matching defs:MAX_VALUE

47     private static final BigInteger MAX_VALUE = makeMaxValue();
48 private static final BigInteger MIN_VALUE = MAX_VALUE.negate();
89 byte[] ba = new byte[Integer.MAX_VALUE - 2];
139 BigInteger actual = MAX_VALUE.add(BigInteger.ONE);
140 throw new RuntimeException("BigInteger.MAX_VALUE.add(BigInteger.ONE).bitLength()=" + actual.bitLength());
159 int px = Integer.MAX_VALUE - py;
173 MIN_VALUE.divide(BigInteger.valueOf(-1)), MAX_VALUE);
189 MAX_VALUE,
216 BigInteger actual = BigInteger.valueOf(4).pow(Integer.MAX_VALUE);
217 throw new RuntimeException("BigInteger.valueOf(4).pow(Integer.MAX_VALUE).bitLength()=" + actual.bitLength());
226 MIN_VALUE.gcd(MIN_VALUE), MAX_VALUE);
228 MIN_VALUE.gcd(BigInteger.ZERO), MAX_VALUE);
230 BigInteger.ZERO.gcd(MIN_VALUE), MAX_VALUE);
236 MIN_VALUE.abs(), MAX_VALUE);
237 check("BigInteger.MAX_VALUE.abs()",
238 MAX_VALUE.abs(), MAX_VALUE);
244 MIN_VALUE.negate(), MAX_VALUE);
245 check("BigInteger.MAX_VALUE.negate()",
246 MAX_VALUE.negate(), MIN_VALUE);
251 check("BigInteger.MIN_VALUE.mod(BigInteger.MAX_VALUE)",
252 MIN_VALUE.mod(MAX_VALUE), BigInteger.ZERO);
253 check("BigInteger.MAX_VALUE.mod(BigInteger.MAX_VALUE)",
254 MIN_VALUE.mod(MAX_VALUE), BigInteger.ZERO);
268 check("BigInteger.MIN_VALUE.modInverse(BigInteger.MAX_VALUE)",
269 MIN_VALUE.modInverse(MAX_VALUE), MAX_VALUE.subtract(BigInteger.ONE));
281 BigInteger actual = MAX_VALUE.shiftLeft(1);
282 throw new RuntimeException("BigInteger.MAX_VALUE.shiftLeft(1).bitLength()=" + actual.bitLength());
297 BigInteger actual = MAX_VALUE.shiftRight(-1);
298 throw new RuntimeException("BigInteger.MAX_VALUE.shiftRight(-1).bitLength()=" + actual.bitLength());
308 check("BigInteger.MAX_VALUE.and(BigInteger.MAX_VALUE)",
309 MAX_VALUE.and(MAX_VALUE), MAX_VALUE);
310 check("BigInteger.MIN_VALUE.and(BigInteger.MAX_VALUE)",
311 MIN_VALUE.and(MAX_VALUE), BigInteger.ONE);
324 check("BigInteger.MAX_VALUE.or(BigInteger.MAX_VALUE)",
325 MAX_VALUE.or(MAX_VALUE), MAX_VALUE);
326 check("BigInteger.MIN_VALUE.and(BigInteger.MAX_VALUE)",
327 MIN_VALUE.or(MAX_VALUE), BigInteger.valueOf(-1));
334 check("BigInteger.MAX_VALUE.xor(BigInteger.MAX_VALUE)",
335 MAX_VALUE.xor(MAX_VALUE), BigInteger.ZERO);
336 check("BigInteger.MIN_VALUE.xor(BigInteger.MAX_VALUE)",
337 MIN_VALUE.xor(MAX_VALUE), BigInteger.valueOf(-2));
349 MIN_VALUE.not(), MAX_VALUE.subtract(BigInteger.ONE));
351 BigInteger actual = MAX_VALUE.not();
352 throw new RuntimeException("BigInteger.MAX_VALUE.not()).bitLength()=" + actual.bitLength());
360 check("BigInteger.MIN_VALUE.setBit(" + Integer.MAX_VALUE + ")",
361 MIN_VALUE.setBit(Integer.MAX_VALUE), MIN_VALUE);
363 BigInteger actual = MAX_VALUE.setBit(Integer.MAX_VALUE);
364 throw new RuntimeException("BigInteger.MAX_VALUE.setBit(" + Integer.MAX_VALUE + ").bitLength()=" + actual.bitLength());
372 check("BigInteger.MAX_VALUE.clearBit(" + Integer.MAX_VALUE + ")",
373 MAX_VALUE.clearBit(Integer.MAX_VALUE), MAX_VALUE);
375 BigInteger actual = MIN_VALUE.clearBit(Integer.MAX_VALUE);
376 throw new RuntimeException("BigInteger.MIN_VALUE.clearBit(" + Integer.MAX_VALUE + ").bitLength()=" + actual.bitLength());
391 BigInteger actual = MIN_VALUE.flipBit(Integer.MAX_VALUE);
392 throw new RuntimeException("BigInteger.MIN_VALUE.flipBit(" + Integer.MAX_VALUE + ").bitLength()=" + actual.bitLength());
403 BigInteger actual = MAX_VALUE.flipBit(Integer.MAX_VALUE);
404 throw new RuntimeException("BigInteger.MAX_VALUE.flipBit(" + Integer.MAX_VALUE + ").bitLength()=" + actual.bitLength());
414 check("BigInteger.MAX_VALUE.getLowestSetBit()",
415 MAX_VALUE.getLowestSetBit(), 0);
421 MIN_VALUE.bitLength(), Integer.MAX_VALUE);
422 check("BigInteger.MAX_VALUE.bitLength()",
423 MAX_VALUE.bitLength(), Integer.MAX_VALUE);
429 MIN_VALUE.bitCount(), Integer.MAX_VALUE - 1);
430 check("BigInteger.MAX_VALUE.bitCount()",
431 MAX_VALUE.bitCount(), Integer.MAX_VALUE);
452 BigInteger.valueOf(-1).shiftLeft(Integer.MAX_VALUE - 1),
482 testToByteArrayWithConstructor("BigInteger.MAX_VALUE.toByteArray()",
483 MAX_VALUE, (1 << 28), (byte) 0x7f, (byte) 0xff, (byte) 0xff);
505 check("BigInteger.MAX_VALUE.floatValue()",
506 MAX_VALUE.intValue(), -1);
513 check("BigInteger.MAX_VALUE.longValue()",
514 MAX_VALUE.longValue(), -1L);
521 check("BigInteger.MAX_VALUE.floatValue()",
522 MAX_VALUE.floatValue(), Float.POSITIVE_INFINITY);
529 check("BigInteger.MAX_VALUE.doubleValue()",
530 MAX_VALUE.doubleValue(), Double.POSITIVE_INFINITY);
556 testSerialization("BigInteger.MAX_VALUE.floatValue()",
557 MAX_VALUE);
569 long actual = MAX_VALUE.longValueExact();
570 throw new RuntimeException("BigInteger.MAX_VALUE.longValueExact()= " + actual);
585 long actual = MAX_VALUE.intValueExact();
586 throw new RuntimeException("BigInteger.MAX_VALUE.intValueExact()= " + actual);
601 long actual = MAX_VALUE.shortValueExact();
602 throw new RuntimeException("BigInteger.MAX_VALUE.shortValueExact()= " + actual);
617 long actual = MAX_VALUE.byteValueExact();
618 throw new RuntimeException("BigInteger.MAX_VALUE.byteValueExact()= " + actual);