What is the difference in CPU cycles (or, in essence, in 'speed') between
x /= y;
and
#include <cmath>
x = sqrt(y);
EDIT: I know the operations aren't equivalent, I'm just arbitrarily proposing x /= y as a benchmark for x = sqrt(y)
What is the difference in CPU cycles (or, in essence, in 'speed') between
x /= y;
and
#include <cmath>
x = sqrt(y);
EDIT: I know the operations aren't equivalent, I'm just arbitrarily proposing x /= y as a benchmark for x = sqrt(y)