3 ms·
Since the author appears to iterate one million times a calculation of constant a and b, I would expect a perfect compiler to compute x only once at compile tim
by lixtra 8y ago
Since the author appears to iterate one million times a calculation of constant a and b, I would expect a perfect compiler to compute x only once at compile time and then also compute sum_x so that there is not much else to do.