Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 29) sorted by relevance

12

/libcore/luni/src/main/java/libcore/util/
DFP16.java239 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/
DBase64.java402 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 …]
DRandom.java198 protected int next(int bits) { in next() argument
205 return (int)(nextseed >>> (48 - bits)); in next()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileAttributes.java217 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/
DBitArray.java106 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()
DDerOutputStream.java237 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()
DDerInputBuffer.java245 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()
DObjectIdentifier.java509 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/
DBigIntegerConstructorsTest.java752 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/
DDouble.java754 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
DFloat.java850 public static native float intBitsToFloat(int bits); in intBitsToFloat() argument
/libcore/luni/src/main/java/java/math/
DBigDecimal.java467 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 …]
DNativeBN.java122 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/
DChoiceFormat.java608 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/
Dcbigint.h62 #define INTBITS_TO_FLOAT(bits) (*(reinterpret_cast<float*>(&bits))) argument
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DBitArray.java40 public BitArray(boolean[] bits) { in BitArray() argument
DDerOutputStream.java91 public void putBitString(byte[] bits) throws java.io.IOException { in putBitString() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DRandomTest.java272 protected int next(int bits) { in next() argument
274 return super.next(bits); in next()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DFloat.java133 public static native float intBitsToFloat(int bits); in intBitsToFloat() argument
DDouble.java130 public static native double longBitsToDouble(long bits); in longBitsToDouble() argument
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DDouble.annotated.java81 public static native double longBitsToDouble(long bits); in longBitsToDouble() argument
DFloat.annotated.java83 public static native float intBitsToFloat(int bits); in intBitsToFloat() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DFloatTest.java175 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/
DWrapper.java568 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/
DRandom.java54 protected int next(int bits) { in next() argument

12