Home
last modified time | relevance | path

Searched refs:testBit (Results 1 – 6 of 6) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerTest.java763 assertTrue("and", (i1.testBit(i) && i2.testBit(i)) == res in test_andLjava_math_BigInteger()
764 .testBit(i)); in test_andLjava_math_BigInteger()
779 assertTrue("or", (i1.testBit(i) || i2.testBit(i)) == res in test_orLjava_math_BigInteger()
780 .testBit(i)); in test_orLjava_math_BigInteger()
795 assertTrue("xor", (i1.testBit(i) ^ i2.testBit(i)) == res in test_xorLjava_math_BigInteger()
796 .testBit(i)); in test_xorLjava_math_BigInteger()
810 assertTrue("not", !i1.testBit(i) == res.testBit(i)); in test_not()
824 assertTrue("andNot", (i1.testBit(i) && !i2.testBit(i)) == res in test_andNotLjava_math_BigInteger()
825 .testBit(i)); in test_andNotLjava_math_BigInteger()
833 (i1.testBit(i) && !i2.testBit(i)) == res.testBit(i)); in test_andNotLjava_math_BigInteger()
DBigIntegerOperateBitsTest.java1304 aNumber.testBit(number); in testTestBitException()
1318 assertTrue(!aNumber.testBit(number)); in testTestBitPositive1()
1329 assertTrue(aNumber.testBit(number)); in testTestBitPositive2()
1340 assertTrue(!aNumber.testBit(number)); in testTestBitPositive3()
1351 assertTrue(aNumber.testBit(number)); in testTestBitNegative1()
1362 assertTrue(!aNumber.testBit(number)); in testTestBitNegative2()
1373 assertTrue(aNumber.testBit(number)); in testTestBitNegative3()
/libcore/ojluni/src/main/java/java/security/spec/
DECFieldF2m.java92 if (!this.rp.testBit(0) || !this.rp.testBit(m) || in ECFieldF2m()
/libcore/luni/src/main/java/java/math/
DBigInteger.java538 public boolean testBit(int n) { in testBit() method in BigInteger
586 if (!testBit(n)) { in setBit()
606 if (testBit(n)) { in clearBit()
DBigDecimal.java1099 compRem = roundingBehavior(quotient.testBit(0) ? 1 : 0, in divideBigIntegers()
1105 compRem = roundingBehavior(quotient.testBit(0) ? 1 : 0, in divideBigIntegers()
1314 while (!integerQuot.testBit(0)) { in divide()
1375 while (!integralValue.testBit(0)) { in divideToIntegralValue()
1480 while (!strippedBI.testBit(0)) { in divideToIntegralValue()
2043 while (!strippedBI.testBit(0)) { in stripTrailingZeros()
2690 compRem = roundingBehavior( integerAndFraction[0].testBit(0) ? 1 : 0, in inplaceRound()
DBitLevel.java91 static boolean testBit(BigInteger val, int n) { in testBit() method in BitLevel