Searched defs:bits (Results 1 - 11 of 11) sorted by relevance

/libcore/ojluni/src/main/java/sun/security/util/
H A DBitArray.java49 private static int position(int idx) { // bits big-endian in each unit
93 2. zero out extra bits in the last byte
103 * Create a BitArray whose bits are those of the given array
106 public BitArray(boolean[] bits) { argument
107 length = bits.length;
111 set(i, bits[i]);
165 * will be contain zeros in any bits that do not have corresponding
166 * bits in the BitArray. (This matters only if the BitArray's size
191 boolean[] bits = new boolean[length];
194 bits[
[all...]
H A DDerOutputStream.java235 * @param bits the bit string, MSB first
237 public void putBitString(byte[] bits) throws IOException { argument
239 putLength(bits.length + 1);
241 write(bits);
248 * @param bits the bit string, MSB first
251 byte[] bits = ba.toByteArray();
254 putLength(bits.length + 1);
255 write(bits.length*8 - ba.length()); // excess bits in last octet
256 write(bits);
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DRandomTest.java272 protected int next(int bits) { argument
274 return super.next(bits);
/libcore/ojluni/src/main/java/java/lang/
H A DDouble.java120 * The number of bits used to represent a {@code double} value.
307 // Isolate significand bits and OR in a high-order bit
755 long bits = doubleToLongBits(value);
756 return (int)(bits ^ (bits >>> 32));
812 * 62-52 (the bits that are selected by the mask
814 * (the bits that are selected by the mask
834 * @return the bits that represent the floating-point number.
855 * 62-52 (the bits that are selected by the mask
857 * (the bits tha
946 longBitsToDouble(long bits) argument
[all...]
H A DFloat.java118 * The number of bits used to represent a {@code float} value.
721 * Bits 30-23 (the bits that are selected by the mask
723 * Bits 22-0 (the bits that are selected by the mask
742 * @return the bits that represent the floating-point number.
763 * Bits 30-23 (the bits that are selected by the mask
765 * Bits 22-0 (the bits that are selected by the mask
787 * @return the bits that represent the floating-point number.
818 * int s = ((bits >> 31) == 0) ? 1 : -1;
819 * int e = ((bits >> 23) & 0xff);
821 * (bits
851 intBitsToFloat(int bits) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DRandom.java57 * up to 32 pseudorandomly generated bits.
162 * happens to use only 48 bits of the given seed. In general, however,
163 * an overriding method may use all 64 bits of the {@code long}
178 * {@code int} value and if the argument {@code bits} is between
180 * bits of the returned value will be (approximately) independently
186 * <pre>{@code (int)(seed >>> (48 - bits))}.</pre>
193 * @param bits random bits
198 protected int next(int bits) { argument
205 return (int)(nextseed >>> (48 - bits));
[all...]
H A DBase64.java402 int bits = (src[sp0++] & 0xff) << 16 |
405 dst[dp0++] = (byte)base64[(bits >>> 18) & 0x3f];
406 dst[dp0++] = (byte)base64[(bits >>> 12) & 0x3f];
407 dst[dp0++] = (byte)base64[(bits >>> 6) & 0x3f];
408 dst[dp0++] = (byte)base64[bits & 0x3f];
691 int bits = 0;
716 bits |= (b << shiftto);
719 dst[dp++] = (byte)(bits >> 16);
720 dst[dp++] = (byte)(bits >> 8);
721 dst[dp++] = (byte)(bits);
869 private int bits = 0; // 24-bit buffer for decoding field in class:Base64.DecInputStream
[all...]
/libcore/luni/src/main/java/java/math/
H A DNativeBN.java122 public static native void BN_generate_prime_ex(long ret, int bits, boolean safe, argument
124 // int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe,
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DThreadLocalRandom.java197 protected int next(int bits) { argument
198 return (int)(mix64(nextSeed()) >>> (64 - bits));
/libcore/luni/src/main/native/
H A Djava_math_NativeBN.cpp374 // In the negative case, the number of bits in a is the same as the number of bits in |a|,
505 static void NativeBN_BN_generate_prime_ex(JNIEnv* env, jclass, jlong ret, int bits, argument
508 if (!BN_generate_prime_ex(toBigNum(ret), bits, safe, toBigNum(add), toBigNum(rem),
/libcore/ojluni/src/main/java/sun/invoke/util/
H A DWrapper.java109 /** How many bits are in the wrapped value? Returns 0 for OBJECT or VOID. */
568 private static boolean boolValue(byte bits) { argument
569 bits &= 1; // simple 31-bit zero extension
570 return (bits != 0);

Completed in 600 milliseconds