/libcore/luni/src/main/java/java/util/ |
D | BitSet.java | 49 private long[] bits; field in BitSet 67 while (i >= 0 && bits[i] == 0) { in shrinkSize() 90 this.bits = arrayForBits(bitCount); in BitSet() 94 private BitSet(long[] bits) { in BitSet() argument 95 this.bits = bits; in BitSet() 96 this.longCount = bits.length; in BitSet() 107 clone.bits = bits.clone(); in clone() 127 if (bits[i] != lhs.bits[i]) { in equals() 138 if (desiredLongCount <= bits.length) { in ensureCapacity() 141 int newLength = Math.max(desiredLongCount, bits.length * 2); in ensureCapacity() [all …]
|
D | HugeEnumSet.java | 30 private long[] bits; field in HugeEnumSet 44 bits = new long[(enums.length + BIT_IN_LONG - 1) / BIT_IN_LONG]; in HugeEnumSet() 54 private long currentBits = bits[0]; 83 } else if (++index < bits.length) { in computeNextElement() 84 currentBits = bits[index]; in computeNextElement() 126 long oldBits = bits[index]; in add() 129 bits[index] = newBits; in add() 148 for (int i = 0; i < bits.length; i++) { in addAll() 149 long oldBits = bits[i]; in addAll() 150 long newBits = oldBits | hugeSet.bits[i]; in addAll() [all …]
|
D | MiniEnumSet.java | 31 private long bits; field in MiniEnumSet 51 private long currentBits = bits; 103 bits = 0; in clear() 110 long oldBits = bits; in add() 113 bits = newBits; in add() 130 long oldBits = bits; in addAll() 131 long newBits = oldBits | miniSet.bits; in addAll() 132 bits = newBits; in addAll() 148 return (bits & (1L << ordinal)) != 0; in contains() 158 long setBits = set.bits; in containsAll() [all …]
|
D | Random.java | 89 protected synchronized int next(int bits) { in next() argument 91 return (int) (seed >>> (48 - bits)); in next() 180 int bits, val; in nextInt() local 182 bits = next(31); in nextInt() 183 val = bits % n; in nextInt() 184 } while (bits - val + (n - 1) < 0); in nextInt()
|
/libcore/luni/src/main/java/java/lang/ |
D | StrictMath.java | 1016 long bits = Double.doubleToLongBits(d); in scalb() local 1018 long sign = bits & Double.SIGN_MASK; in scalb() 1020 long factor = (int) ((bits & Double.EXPONENT_MASK) >> Double.MANTISSA_BITS) in scalb() 1024 int subNormalFactor = Long.numberOfLeadingZeros(bits & ~Double.SIGN_MASK) in scalb() 1044 result = shiftLongBits(bits & Double.MANTISSA_MASK, digits); in scalb() 1047 … result = shiftLongBits(bits & Double.MANTISSA_MASK | 0x0010000000000000L, digits - 1); in scalb() 1053 | (bits & Double.MANTISSA_MASK); in scalb() 1057 | ((bits << (subNormalFactor + 1)) & Double.MANTISSA_MASK); in scalb() 1071 int bits = Float.floatToIntBits(d); in scalb() local 1072 int sign = bits & Float.SIGN_MASK; in scalb() [all …]
|
D | Math.java | 1033 int bits = Float.floatToRawIntBits(f); in getExponent() local 1034 bits = (bits & Float.EXPONENT_MASK) >> Float.MANTISSA_BITS; in getExponent() 1035 return bits - Float.EXPONENT_BIAS; in getExponent() 1043 long bits = Double.doubleToRawLongBits(d); in getExponent() local 1044 bits = (bits & Double.EXPONENT_MASK) >> Double.MANTISSA_BITS; in getExponent() 1045 return (int) bits - Double.EXPONENT_BIAS; in getExponent() 1152 long bits = Double.doubleToLongBits(d); in scalb() local 1154 long sign = bits & Double.SIGN_MASK; in scalb() 1156 long factor = ((bits & Double.EXPONENT_MASK) >> Double.MANTISSA_BITS) in scalb() 1160 int subNormalFactor = Long.numberOfLeadingZeros(bits & ~Double.SIGN_MASK) in scalb() [all …]
|
D | Float.java | 231 public static native float intBitsToFloat(int bits); in intBitsToFloat() argument
|
D | Double.java | 278 public static native double longBitsToDouble(long bits); in longBitsToDouble() argument
|
/libcore/luni/src/main/native/ |
D | java_lang_Double.cpp | 28 uint64_t bits; member 38 return isnan(d.d) ? NaN : d.bits; in Double_doubleToLongBits() 44 return d.bits; in Double_doubleToRawLongBits() 49 d.bits = val; in Double_longBitsToDouble()
|
D | java_lang_Float.cpp | 27 unsigned int bits; member 37 return isnanf(f.f) ? NaN : f.bits; in Float_floatToIntBits() 43 return f.bits; in Float_floatToRawIntBits() 48 f.bits = val; in Float_intBitsToFloat()
|
D | cbigint.h | 62 #define INTBITS_TO_FLOAT(bits) (*(reinterpret_cast<float*>(&bits))) argument
|
D | java_math_NativeBN.cpp | 522 static void NativeBN_BN_generate_prime_ex(JNIEnv* env, jclass, jlong ret, int bits, in NativeBN_BN_generate_prime_ex() argument 525 BN_generate_prime_ex(toBigNum(ret), bits, safe, toBigNum(add), toBigNum(rem), in NativeBN_BN_generate_prime_ex()
|
/libcore/luni/src/main/java/libcore/io/ |
D | Base64.java | 71 int bits = 0; in decode() local 85 bits = chr - 65; in decode() 90 bits = chr - 71; in decode() 95 bits = chr + 4; in decode() 97 bits = 62; in decode() 99 bits = 63; in decode() 104 quantum = (quantum << 6) | (byte) bits; in decode()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 100 protected int next(int bits) { in next() argument 102 return (int) (rnd >>> (48-bits)); in next() 140 int bits = next(2); in nextLong() local 142 long nextn = ((bits & 2) == 0) ? half : n - half; in nextLong() 143 if ((bits & 1) == 0) in nextLong()
|
/libcore/luni/src/main/java/java/text/ |
D | ChoiceFormat.java | 317 long bits; in nextDouble() local 320 bits = 0; in nextDouble() 322 bits = Double.doubleToLongBits(value); in nextDouble() 324 return Double.longBitsToDouble(value < 0 ? bits - 1 : bits + 1); in nextDouble() 399 long bits; in previousDouble() local 402 bits = 0x8000000000000000L; in previousDouble() 404 bits = Double.doubleToLongBits(value); in previousDouble() 406 return Double.longBitsToDouble(value <= 0 ? bits + 1 : bits - 1); in previousDouble()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerConstructorsTest.java | 752 int bits; in testConstructorPrime() local 755 bits = 128; in testConstructorPrime() 756 b = new BigInteger(bits, 10, rnd); in testConstructorPrime() 757 assertEquals(b.toString(), bits, b.bitLength()); in testConstructorPrime() local 760 bits = 25; in testConstructorPrime() 761 b = new BigInteger(bits, 10, rnd); in testConstructorPrime() 762 assertEquals(b.toString(), bits, b.bitLength()); in testConstructorPrime() local 765 bits = 18; in testConstructorPrime() 766 b = new BigInteger(bits, 10, rnd); in testConstructorPrime() 767 assertEquals(b.toString(), bits, b.bitLength()); in testConstructorPrime() local [all …]
|
/libcore/luni/src/main/java/java/math/ |
D | BigDecimal.java | 467 long bits = Double.doubleToLongBits(val); // IEEE-754 in BigDecimal() local 471 scale = 1075 - (int)((bits >> 52) & 0x7FFL); in BigDecimal() 473 mantissa = (scale == 1075) ? (bits & 0xFFFFFFFFFFFFFL) << 1 in BigDecimal() 474 : (bits & 0xFFFFFFFFFFFFFL) | 0x10000000000000L; in BigDecimal() 486 if((bits >> 63) != 0) { in BigDecimal() 2527 long bits; // IEEE-754 Standard in doubleValue() local 2568 bits = mantissa.shiftRight(discardedSize).longValue(); in doubleValue() 2569 tempBits = bits; in doubleValue() 2571 if ((((bits & 1) == 1) && (lowestSetBit < discardedSize)) in doubleValue() 2572 || ((bits & 3) == 3)) { in doubleValue() [all …]
|
D | NativeBN.java | 122 public static native void BN_generate_prime_ex(long ret, int bits, boolean safe, in BN_generate_prime_ex() argument
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
D | SHA1PRNG_SecureRandomImpl.java | 285 long bits; // number of bits required by Secure Hash Standard in engineNextBytes() local 330 bits = (seedLength << 3) + 64; // transforming # of bytes into # of bits in engineNextBytes() 335 seed[14] = (int) (bits >>> 32); in engineNextBytes() 336 seed[15] = (int) (bits & 0xFFFFFFFF); in engineNextBytes() 338 copies[EXTRAFRAME_OFFSET + 14] = (int) (bits >>> 32); in engineNextBytes() 339 copies[EXTRAFRAME_OFFSET + 15] = (int) (bits & 0xFFFFFFFF); in engineNextBytes()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | RandomTest.java | 31 @Override protected synchronized int next(int bits) { return state.length(); } in test_subclassing() argument
|
/libcore/luni/src/test/java/tests/api/java/util/ |
D | RandomTest.java | 257 protected int next(int bits) { in next() argument 259 return super.next(bits); in next()
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | BerInputStream.java | 256 int bits = buffer[contentOffset] & 0xFF; in readEnumerated() local 258 bits += 0x100; in readEnumerated() 261 if (bits == 0 || bits == 0x1FF) { in readEnumerated()
|