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.java762 assertTrue("and", (i1.testBit(i) && i2.testBit(i)) == res in test_andLjava_math_BigInteger()
763 .testBit(i)); in test_andLjava_math_BigInteger()
778 assertTrue("or", (i1.testBit(i) || i2.testBit(i)) == res in test_orLjava_math_BigInteger()
779 .testBit(i)); in test_orLjava_math_BigInteger()
794 assertTrue("xor", (i1.testBit(i) ^ i2.testBit(i)) == res in test_xorLjava_math_BigInteger()
795 .testBit(i)); in test_xorLjava_math_BigInteger()
809 assertTrue("not", !i1.testBit(i) == res.testBit(i)); in test_not()
823 assertTrue("andNot", (i1.testBit(i) && !i2.testBit(i)) == res in test_andNotLjava_math_BigInteger()
824 .testBit(i)); in test_andNotLjava_math_BigInteger()
832 (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.java536 public boolean testBit(int n) { in testBit() method in BigInteger
584 if (!testBit(n)) { in setBit()
604 if (testBit(n)) { in clearBit()
DBigDecimal.java1090 compRem = roundingBehavior(quotient.testBit(0) ? 1 : 0, in divideBigIntegers()
1096 compRem = roundingBehavior(quotient.testBit(0) ? 1 : 0, in divideBigIntegers()
1306 while (!integerQuot.testBit(0)) { in divide()
1367 while (!integralValue.testBit(0)) { in divideToIntegralValue()
1472 while (!strippedBI.testBit(0)) { in divideToIntegralValue()
2037 while (!strippedBI.testBit(0)) { in stripTrailingZeros()
2684 compRem = roundingBehavior( integerAndFraction[0].testBit(0) ? 1 : 0, in inplaceRound()
DBitLevel.java91 static boolean testBit(BigInteger val, int n) { in testBit() method in BitLevel