publicclass Test6378821 { staticfinalint[] ia = newint[] { 0x12345678 }; staticfinallong[] la = newlong[] { 0x12345678abcdefL };
publicstaticvoid main(String [] args) { // Resolve the class and the method.
Integer.bitCount(1); Long.bitCount(1);
sub(ia[0]);
sub(la[0]);
sub(ia);
sub(la);
}
staticvoid check(int i, int expected, int result) { if (result != expected) { thrownew InternalError("Wrong population count for " + i + ": " + result + " != " + expected);
}
}
staticvoid check(long l, int expected, int result) { if (result != expected) { thrownew InternalError("Wrong population count for " + l + ": " + result + " != " + expected);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.