3 ms·
> Using pow for a small integer power is a no-no: less efficient and less accurate. Using pow for a small integer power compiles into the exact same code: http
by jcelerier 9y ago
> Using pow for a small integer power is a no-no: less efficient and less accurate.
Using pow for a small integer power compiles into the exact same code: https://godbolt.org/g/CjoHdJ https://godbolt.org/g/CjoHdJ
- stochastic_monk 9y agoOnly for 1 or 2, unless you turn on --fast-math.