Home
last modified time | relevance | path

Searched refs:numBits (Results 1 – 9 of 9) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecureRandom2Test.java276 int numBits = 29; in test_nextJ() local
277 int random = mySecureRandom.getNext(numBits); in test_nextJ()
278 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ()
280 numBits = 0; in test_nextJ()
281 random = mySecureRandom.getNext(numBits); in test_nextJ()
282 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ()
284 numBits = 40; in test_nextJ()
285 random = mySecureRandom.getNext(numBits); in test_nextJ()
288 numBits = -1; in test_nextJ()
289 random = mySecureRandom.getNext(numBits); in test_nextJ()
[all …]
/libcore/luni/src/main/native/
Djava_lang_StringToReal.cpp198 int32_t numBits; in createDouble1() local
204 numBits = highestSetBitHighPrecision (f, length) + 1; in createDouble1()
205 numBits -= lowestSetBitHighPrecision (f, length); in createDouble1()
206 if (numBits < 54 && e >= 0 && e < DOUBLE_LOG5_OF_TWO_TO_THE_N) in createDouble1()
210 else if (numBits < 54 && e < 0 && (-e) < DOUBLE_LOG5_OF_TWO_TO_THE_N) in createDouble1()
586 int32_t numBits; in createFloat1() local
590 numBits = highestSetBitHighPrecision (f, length) + 1; in createFloat1()
591 if (numBits < 25 && e >= 0 && e < FLOAT_LOG5_OF_TWO_TO_THE_N) in createFloat1()
595 else if (numBits < 25 && e < 0 && (-e) < FLOAT_LOG5_OF_TWO_TO_THE_N) in createFloat1()
/libcore/ojluni/src/main/java/java/security/
DSecureRandom.java870 protected final int next(int numBits) { in next() argument
871 int numBytes = (numBits+7)/8; in next()
880 return next >>> (numBytes*8 - numBits); in next()
/libcore/luni/src/test/java/tests/java/security/
DSecureRandomTest.java291 public int nextElement(int numBits) { in nextElement() argument
292 return super.next(numBits); in nextElement()
/libcore/ojluni/annotations/flagged_api/java/security/
DSecureRandom.annotated.java71 protected final int next(int numBits) { throw new RuntimeException("Stub!"); } in next() argument
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java525 long numBits = ((numDigits * bitsPerDigit[radix]) >>> 10) + 1; in BigInteger() local
526 if (numBits + 31 >= (1L << 32)) { in BigInteger()
529 int numWords = (int) (numBits + 31) >>> 5; in BigInteger()
584 long numBits = ((numDigits * bitsPerDigit[10]) >>> 10) + 1; in BigInteger() local
585 if (numBits + 31 >= (1L << 32)) { in BigInteger()
588 numWords = (int) (numBits + 31) >>> 5; in BigInteger()
691 public BigInteger(int numBits, Random rnd) { in BigInteger() argument
692 byte[] magnitude = randomBits(numBits, rnd); in BigInteger()
711 private static byte[] randomBits(int numBits, Random rnd) { in randomBits() argument
712 if (numBits < 0) in randomBits()
[all …]
DMutableBigInteger.java2277 int numBits = k & 0x1f;
2278 if (numBits != 0) {
2281 v &= ((1<<numBits) - 1);
2286 c.rightShift(numBits);
/libcore/ojluni/src/main/java/java/util/
DBitSet.java1188 int numBits = (wordsInUse > 128) ? in toString() local
1191 int initialCapacity = (numBits <= (MAX_INITIAL_CAPACITY - 2) / 6) ? in toString()
1192 6 * numBits + 2 : MAX_INITIAL_CAPACITY; in toString()
/libcore/ojluni/annotations/sdk/nullability/java/math/
DBigInteger.annotated.java43 …public BigInteger(int numBits, @libcore.util.NonNull java.util.Random rnd) { throw new RuntimeExce… in BigInteger() argument