Searched refs:numBits (Results 1 – 7 of 7) 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 …]
498 final protected int next(int numBits) { in next() argument499 int numBytes = (numBits+7)/8; in next()508 return next >>> (numBytes*8 - numBits); in next()
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()
388 int numBits = BN_is_pow2(&positiveA) ? BN_num_bits(&positiveA) - 1 : BN_num_bits(&positiveA); in NativeBN_bitLength() local391 return numBits; in NativeBN_bitLength()
129 public BigInteger(int numBits, @NonNull Random random) { in BigInteger() argument130 if (numBits < 0) { in BigInteger()131 throw new IllegalArgumentException("numBits < 0: " + numBits); in BigInteger()133 if (numBits == 0) { in BigInteger()137 int numberLength = (numBits + 31) >> 5; in BigInteger()143 digits[numberLength - 1] >>>= (-numBits) & 31; in BigInteger()
291 public int nextElement(int numBits) { in nextElement() argument292 return super.next(numBits); in nextElement()
1184 int numBits = (wordsInUse > 128) ? in toString() local1186 StringBuilder b = new StringBuilder(6*numBits + 2); in toString()