// Test for the optimizing compiler's parallel swap support in // the presence of register pairs (in this case, doubles on ARM). publicclass Main { publicstaticvoid main(String[] args) { new Main().foo();
}
publicvoid foo() { // Do multiple calls to force swapping of registers. Note that // this depends on the calling convention, as a stack-only convention // may not need the swapping.
callWithDoubles(a, b, c, d, e, f, g);
callWithDoubles(b, c, d, e, f, g, a);
callWithDoubles(c, d, e, f, g, a, b);
callWithDoubles(d, e, f, g, a, b, c);
}
publicstaticvoid callWithDoubles( double a, double b, double c, double d, double e, double f, double g) {
System.out.println(a - b - c - d - e - f - g);
}
double a = 1.0; double b = 2.0; double c = 3.0; double d = 4.0; double e = 5.0; double f = 6.0; double g = 7.0;
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-29)
¤
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.