3 ms·
If you want to compute lots of reciprocals, don't mind some rounding errors, and have reasonable-sized values, you can compute them with one reciprocal and a fe
by cperciva 16y ago
If you want to compute lots of reciprocals, don't mind some rounding errors, and have reasonable-sized values, you can compute them with one reciprocal and a few multiplications, e.g.,
tmp = 1 / (a * b)
oneovera = tmp * b
oneoverb = tmp * a