/openjdk7/hotspot/test/compiler/6378821/ |
H A D | Test6378821.java | 27 * @summary where available, bitCount() should use POPC on SPARC processors and AMD+10h 38 Integer.bitCount(1); 39 Long.bitCount(1); 64 static int fint (int i) { return Integer.bitCount(i); } 65 static int fcomp(int i) { return Integer.bitCount(i); } 67 static int fint (int[] ia) { return Integer.bitCount(ia[0]); } 68 static int fcomp(int[] ia) { return Integer.bitCount(ia[0]); } 70 static int fint (long l) { return Long.bitCount(l); } 71 static int fcomp(long l) { return Long.bitCount(l); } 73 static int fint (long[] la) { return Long.bitCount(l [all...] |
/openjdk7/hotspot/test/compiler/6956668/ |
H A D | Test6956668.java | 40 int bitCount = Integer.bitCount(testValue); 56 if (bitCount != result) { 57 System.out.println("ERROR: " + bitCount + " != " + result);
|
/openjdk7/hotspot/test/compiler/8005033/ |
H A D | Test8005033.java | 27 * @summary On sparcv9, C2's intrinsic for Integer.bitCount(OV) returns wrong result if OV is the result of an operation with int overflow. 37 Integer.bitCount(1); // load class 46 // testBitCount will be compiled using the Integer.bitCount() intrinsic if possible 48 return Integer.bitCount(MINUS_ONE+1); // -1 + 1 => int overflow
|
/openjdk7/jdk/test/java/lang/Integer/ |
H A D | BitTwiddle.java | 80 if (bitCount(0) != 0) 85 if (bitCount(pow2) != 1) 87 if (bitCount(pow2 -1) != i) 93 if (bitCount(x) != bitCount(reverse(x))) 100 if (bitCount(x) != bitCount(rotateRight(x, dist))) 103 if (bitCount(x) != bitCount(rotateLeft(x, dist))) 130 if (bitCount( [all...] |
/openjdk7/jdk/test/java/lang/Long/ |
H A D | BitTwiddle.java | 80 if (bitCount(0) != 0) 85 if (bitCount(pow2) != 1) 87 if (bitCount(pow2 -1) != i) 93 if (bitCount(x) != bitCount(reverse(x))) 100 if (bitCount(x) != bitCount(rotateRight(x, dist))) 103 if (bitCount(x) != bitCount(rotateLeft(x, dist))) 130 if (bitCount( [all...] |
/openjdk7/jdk/src/share/classes/java/security/spec/ |
H A D | ECFieldF2m.java | 91 int bitCount = this.rp.bitCount(); 93 ((bitCount != 3) && (bitCount != 5))) { 99 this.ks = new int[bitCount-2];
|
/openjdk7/jdk/test/java/rmi/server/ObjID/randomIDs/ |
H A D | RandomIDs.java | 105 int bitCount = 0; 108 bitCount += Long.bitCount(objnums[i]); 118 ((double) (bitCount - bitCountTarget)) / bitCountTarget; 121 "bitCount == " + bitCount);
|
/openjdk7/hotspot/test/compiler/5091921/ |
H A D | Test7020614.java | 44 sum += Integer.bitCount(value);
|
/openjdk7/jdk/src/share/classes/sun/swing/plaf/synth/ |
H A D | DefaultSynthStyle.java | 650 int bitCount = oState; 651 bitCount -= (0xaaaaaaaa & bitCount) >>> 1; 652 bitCount = (bitCount & 0x33333333) + ((bitCount >>> 2) & 654 bitCount = bitCount + (bitCount >>> 4) & 0x0f0f0f0f; 655 bitCount [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/dtd/models/ |
H A D | CMStateSet.java | 89 public CMStateSet(int bitCount) argument 92 fBitCount = bitCount;
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/ |
H A D | NimbusStyle.java | 985 int bitCount = oState; 986 bitCount -= (0xaaaaaaaa & bitCount) >>> 1; 987 bitCount = (bitCount & 0x33333333) + ((bitCount >>> 2) & 989 bitCount = bitCount + (bitCount >>> 4) & 0x0f0f0f0f; 990 bitCount [all...] |
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/ |
H A D | DESKeyGenerator.java | 143 b |= (Integer.bitCount(b) & 1) ^ 1;
|
/openjdk7/jdk/src/share/classes/javax/crypto/spec/ |
H A D | DESKeySpec.java | 196 int k = Integer.bitCount(key[offset++] & 0xff);
|
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | RegularEnumSet.java | 121 return Long.bitCount(elements);
|
H A D | JumboEnumSet.java | 365 size += Long.bitCount(elt);
|
H A D | BitSet.java | 888 sum += Long.bitCount(words[i]);
|
H A D | HashMap.java | 306 ? (Integer.bitCount(number) > 1) ? rounded << 1 : rounded 379 // assert Integer.bitCount(length) == 1 : "length must be a non-zero power of 2";
|
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/crypto/dk/ |
H A D | Des3DkCrypto.java | 179 b |= (Integer.bitCount(b) & 1) ^ 1;
|
/openjdk7/jdk/test/java/math/BigInteger/ |
H A D | BigIntegerTest.java | 121 public static void bitCount() { method in class:BigIntegerTest 128 int tmp = x, bitCount = 0; 130 bitCount += ((tmp & 1) == bit ? 1 : 0); 134 if (bigX.bitCount() != bitCount) { 135 //System.err.println(x+": "+bitCount+", "+bigX.bitCount()); 721 bitCount();
|
/openjdk7/jdk/src/windows/classes/sun/awt/windows/ |
H A D | WPrinterJob.java | 1217 int bitCount = 24; 1221 bitCount = sampleBitsPerPixel; 1235 bitCount, bmiColors); 1519 int bitCount, byte[] bmiColors); 1514 drawDIBImage(long printDC, byte[] image, float destX, float destY, float destWidth, float destHeight, float srcX, float srcY, float srcWidth, float srcHeight, int bitCount, byte[] bmiColors) argument
|
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/ |
H A D | P11SecretKeyFactory.java | 183 b |= (Integer.bitCount(b) & 1) ^ 1;
|
/openjdk7/jdk/src/share/classes/java/math/ |
H A D | BigInteger.java | 126 * One plus the bitCount of this BigInteger. Zeros means unitialized. 129 * @see #bitCount 134 private int bitCount; field in class:BigInteger 2407 boolean pow2 = (Integer.bitCount(mag[0]) == 1); 2429 public int bitCount() { method in class:BigInteger 2430 @SuppressWarnings("deprecation") int bc = bitCount - 1; 2431 if (bc == -1) { // bitCount not initialized yet 2435 bc += Integer.bitCount(mag[i]); 2444 bitCount = bc + 1; 3056 * @serialField bitCount in [all...] |
/openjdk7/jdk/src/share/classes/java/lang/ |
H A D | Integer.java | 1141 public static int bitCount(int i) { method in class:Integer
|
H A D | Long.java | 1095 public static int bitCount(long i) { method in class:Long
|
/openjdk7/langtools/test/tools/javac/TryWithResources/ |
H A D | TwrTests.java | 318 if (suppressedExceptions.length != Integer.bitCount(bitMap)) 319 throw new AssertionError("Expected " + Integer.bitCount(bitMap)
|