Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Neural Branch Prediction

Name: Anonymous 2014-06-15 5:24

How much faster is it compared to stat-of-art implementations?

Name: Anonymous 2014-06-15 5:35

Also, as I undrestand, it will run faster, if you replace
for (;;) code[PC++]();
with
pc_changed:
switch (PC) {
case 0: if (code[0].op == C_JMP) { // branch-prediction would optimize that out
PC = code[0].target;
goto pc_changed;
}
handlers[code.op](code+0);
case 1: ...
...
case MAX: ...
}

Don't change these.
Name: Email:
Entire Thread Thread List