publicstaticvoid test() { // java.lang.Math.abs() collapses into AbsI/AbsL nodes on platforms that support the correspondent nodes // Using unsupported nodes triggers a console warning on a release build and gives an error on a debug build
Math.abs(1);
Math.abs(-1);
Math.abs(1L);
Math.abs(-1L);
}
publicstaticvoid main(String args[]) { for (int i = 0; i < 20_000; i++) {
test();
}
}
}
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.