Searched refs:numBits (Results 1 – 9 of 9) sorted by relevance
276 int numBits = 29; in test_nextJ() local277 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 …]
198 int32_t numBits; in createDouble1() local204 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() local590 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()
870 protected final int next(int numBits) { in next() argument871 int numBytes = (numBits+7)/8; in next()880 return next >>> (numBytes*8 - numBits); in next()
291 public int nextElement(int numBits) { in nextElement() argument292 return super.next(numBits); in nextElement()
71 protected final int next(int numBits) { throw new RuntimeException("Stub!"); } in next() argument
525 long numBits = ((numDigits * bitsPerDigit[radix]) >>> 10) + 1; in BigInteger() local526 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() local585 if (numBits + 31 >= (1L << 32)) { in BigInteger()588 numWords = (int) (numBits + 31) >>> 5; in BigInteger()691 public BigInteger(int numBits, Random rnd) { in BigInteger() argument692 byte[] magnitude = randomBits(numBits, rnd); in BigInteger()711 private static byte[] randomBits(int numBits, Random rnd) { in randomBits() argument712 if (numBits < 0) in randomBits()[all …]
2277 int numBits = k & 0x1f;2278 if (numBits != 0) {2281 v &= ((1<<numBits) - 1);2286 c.rightShift(numBits);
1188 int numBits = (wordsInUse > 128) ? in toString() local1191 int initialCapacity = (numBits <= (MAX_INITIAL_CAPACITY - 2) / 6) ? in toString()1192 6 * numBits + 2 : MAX_INITIAL_CAPACITY; in toString()
43 …public BigInteger(int numBits, @libcore.util.NonNull java.util.Random rnd) { throw new RuntimeExce… in BigInteger() argument