Searched defs:bits (Results 1 - 11 of 11) sorted by relevance
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | BitArray.java | 49 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 D | DerOutputStream.java | 235 * @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 D | RandomTest.java | 272 protected int next(int bits) { argument 274 return super.next(bits);
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Double.java | 120 * 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 D | Float.java | 118 * 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 D | Random.java | 57 * 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 D | Base64.java | 402 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 D | NativeBN.java | 122 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 D | ThreadLocalRandom.java | 197 protected int next(int bits) { argument 198 return (int)(mix64(nextSeed()) >>> (64 - bits));
|
/libcore/luni/src/main/native/ |
H A D | java_math_NativeBN.cpp | 374 // 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 D | Wrapper.java | 109 /** 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