Searched refs:bitCount (Results 1 - 25 of 27) sorted by relevance

12

/openjdk7/hotspot/test/compiler/6378821/
H A DTest6378821.java27 * @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 DTest6956668.java40 int bitCount = Integer.bitCount(testValue);
56 if (bitCount != result) {
57 System.out.println("ERROR: " + bitCount + " != " + result);
/openjdk7/hotspot/test/compiler/8005033/
H A DTest8005033.java27 * @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 DBitTwiddle.java80 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 DBitTwiddle.java80 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 DECFieldF2m.java91 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 DRandomIDs.java105 int bitCount = 0;
108 bitCount += Long.bitCount(objnums[i]);
118 ((double) (bitCount - bitCountTarget)) / bitCountTarget;
121 "bitCount == " + bitCount);
/openjdk7/hotspot/test/compiler/5091921/
H A DTest7020614.java44 sum += Integer.bitCount(value);
/openjdk7/jdk/src/share/classes/sun/swing/plaf/synth/
H A DDefaultSynthStyle.java650 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 DCMStateSet.java89 public CMStateSet(int bitCount) argument
92 fBitCount = bitCount;
/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/
H A DNimbusStyle.java985 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 DDESKeyGenerator.java143 b |= (Integer.bitCount(b) & 1) ^ 1;
/openjdk7/jdk/src/share/classes/javax/crypto/spec/
H A DDESKeySpec.java196 int k = Integer.bitCount(key[offset++] & 0xff);
/openjdk7/jdk/src/share/classes/java/util/
H A DRegularEnumSet.java121 return Long.bitCount(elements);
H A DJumboEnumSet.java365 size += Long.bitCount(elt);
H A DBitSet.java888 sum += Long.bitCount(words[i]);
H A DHashMap.java306 ? (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 DDes3DkCrypto.java179 b |= (Integer.bitCount(b) & 1) ^ 1;
/openjdk7/jdk/test/java/math/BigInteger/
H A DBigIntegerTest.java121 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 DWPrinterJob.java1217 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 DP11SecretKeyFactory.java183 b |= (Integer.bitCount(b) & 1) ^ 1;
/openjdk7/jdk/src/share/classes/java/math/
H A DBigInteger.java126 * 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 DInteger.java1141 public static int bitCount(int i) { method in class:Integer
H A DLong.java1095 public static int bitCount(long i) { method in class:Long
/openjdk7/langtools/test/tools/javac/TryWithResources/
H A DTwrTests.java318 if (suppressedExceptions.length != Integer.bitCount(bitMap))
319 throw new AssertionError("Expected " + Integer.bitCount(bitMap)

Completed in 101 milliseconds

12