/libcore/luni/src/main/java/libcore/util/ |
D | FP16.java | 239 int bits = h & 0xffff; in rint() local 240 int abs = bits & EXPONENT_SIGNIFICAND_MASK; in rint() 241 int result = bits; in rint() 282 int bits = h & 0xffff; in ceil() local 283 int abs = bits & EXPONENT_SIGNIFICAND_MASK; in ceil() 284 int result = bits; in ceil() 288 result |= 0x3c00 & -(~(bits >> 15) & (abs != 0 ? 1 : 0)); in ceil() 292 result += mask & ((bits >> 15) - 1); in ceil() 323 int bits = h & 0xffff; in floor() local 324 int abs = bits & EXPONENT_SIGNIFICAND_MASK; in floor() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Base64.java | 402 int bits = (src[sp0++] & 0xff) << 16 | in encode0() local 405 dst[dp0++] = (byte)base64[(bits >>> 18) & 0x3f]; in encode0() 406 dst[dp0++] = (byte)base64[(bits >>> 12) & 0x3f]; in encode0() 407 dst[dp0++] = (byte)base64[(bits >>> 6) & 0x3f]; in encode0() 408 dst[dp0++] = (byte)base64[bits & 0x3f]; in encode0() 691 int bits = 0; in decode0() local 716 bits |= (b << shiftto); in decode0() 719 dst[dp++] = (byte)(bits >> 16); in decode0() 720 dst[dp++] = (byte)(bits >> 8); in decode0() 721 dst[dp++] = (byte)(bits); in decode0() [all …]
|
D | Random.java | 198 protected int next(int bits) { in next() argument 205 return (int)(nextseed >>> (48 - bits)); in next()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixFileAttributes.java | 217 int bits = (st_mode & UnixConstants.S_IAMB); in permissions() local 220 if ((bits & UnixConstants.S_IRUSR) > 0) in permissions() 222 if ((bits & UnixConstants.S_IWUSR) > 0) in permissions() 224 if ((bits & UnixConstants.S_IXUSR) > 0) in permissions() 227 if ((bits & UnixConstants.S_IRGRP) > 0) in permissions() 229 if ((bits & UnixConstants.S_IWGRP) > 0) in permissions() 231 if ((bits & UnixConstants.S_IXGRP) > 0) in permissions() 234 if ((bits & UnixConstants.S_IROTH) > 0) in permissions() 236 if ((bits & UnixConstants.S_IWOTH) > 0) in permissions() 238 if ((bits & UnixConstants.S_IXOTH) > 0) in permissions()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | BitArray.java | 106 public BitArray(boolean[] bits) { in BitArray() argument 107 length = bits.length; in BitArray() 111 set(i, bits[i]); in BitArray() 191 boolean[] bits = new boolean[length]; in toBooleanArray() 194 bits[i] = get(i); in toBooleanArray() 196 return bits; in toBooleanArray()
|
D | DerOutputStream.java | 237 public void putBitString(byte[] bits) throws IOException { in putBitString() argument 239 putLength(bits.length + 1); in putBitString() 241 write(bits); in putBitString() 251 byte[] bits = ba.toByteArray(); in putUnalignedBitString() 254 putLength(bits.length + 1); in putUnalignedBitString() 255 write(bits.length*8 - ba.length()); // excess bits in last octet in putUnalignedBitString() 256 write(bits); in putUnalignedBitString()
|
D | DerInputBuffer.java | 245 byte[] bits = new byte[len - 1]; in getUnalignedBitString() 247 int length = (bits.length == 0) ? 0 : bits.length * 8 - unusedBits; in getUnalignedBitString() 249 System.arraycopy(buf, pos + 1, bits, 0, len - 1); in getUnalignedBitString() 251 BitArray bitArray = new BitArray(length, bits); in getUnalignedBitString()
|
D | ObjectIdentifier.java | 509 int bits = ilength * iw; // number of all used bits in pack() local 510 byte[] out = new byte[(bits+ow-1)/ow]; in pack() 516 int opos = (bits+ow-1)/ow*ow-bits; in pack() 518 while(ipos < bits) { in pack()
|
/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/ojluni/src/main/java/java/lang/ |
D | Double.java | 754 long bits = doubleToLongBits(value); in hashCode() local 755 return (int)(bits ^ (bits >>> 32)); in hashCode() 945 public static native double longBitsToDouble(long bits); in longBitsToDouble() argument
|
D | Float.java | 850 public static native float intBitsToFloat(int bits); in intBitsToFloat() argument
|
/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() 2541 long bits; // IEEE-754 Standard in doubleValue() local 2582 bits = mantissa.shiftRight(discardedSize).longValue(); in doubleValue() 2583 tempBits = bits; in doubleValue() 2585 if ((((bits & 1) == 1) && (lowestSetBit < discardedSize)) in doubleValue() 2586 || ((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/ojluni/src/main/java/java/text/ |
D | ChoiceFormat.java | 608 long bits = Double.doubleToLongBits(d); in nextDouble() local 611 long magnitude = bits & ~SIGN; in nextDouble() 614 if ((bits > 0) == positive) { in nextDouble() 625 long signbit = bits & SIGN; in nextDouble()
|
/libcore/luni/src/main/native/ |
D | cbigint.h | 62 #define INTBITS_TO_FLOAT(bits) (*(reinterpret_cast<float*>(&bits))) argument
|
/libcore/ojluni/annotations/hiddenapi/sun/security/util/ |
D | BitArray.java | 40 public BitArray(boolean[] bits) { in BitArray() argument
|
D | DerOutputStream.java | 91 public void putBitString(byte[] bits) throws java.io.IOException { in putBitString() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | RandomTest.java | 272 protected int next(int bits) { in next() argument 274 return super.next(bits); in next()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Float.java | 133 public static native float intBitsToFloat(int bits); in intBitsToFloat() argument
|
D | Double.java | 130 public static native double longBitsToDouble(long bits); in longBitsToDouble() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Double.annotated.java | 81 public static native double longBitsToDouble(long bits); in longBitsToDouble() argument
|
D | Float.annotated.java | 83 public static native float intBitsToFloat(int bits); in intBitsToFloat() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | FloatTest.java | 175 int bits = Float.floatToIntBits(f); in test_floatToIntBitsF() local 176 float r = Float.intBitsToFloat(bits); in test_floatToIntBitsF() 224 int bits = Float.floatToIntBits(f); in test_intBitsToFloatI() local 225 float r = Float.intBitsToFloat(bits); in test_intBitsToFloatI()
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
D | Wrapper.java | 568 private static boolean boolValue(byte bits) { in boolValue() argument 569 bits &= 1; // simple 31-bit zero extension in boolValue() 570 return (bits != 0); in boolValue()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Random.java | 54 protected int next(int bits) { in next() argument
|