is the `pow` function slower than doing manual mu...
# random
r
is the
pow
function slower than doing manual multiplication?
t
That's the sort of thing you'd want to just run through a performance test.
(Both to find out which is faster and, more importantly, to find out if there's even a performance issue to solve.)
In the case of
pow
with a constant exponent, the compiler may even optimize it for you using square-and-multiply.
­čĹć 3