Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jcelerier
on March 24, 2018
|
parent
|
context
|
favorite
| on:
C for All
> 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
stochastic_monk
on March 24, 2018
[–]
Only for 1 or 2, unless you turn on --fast-math.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Using pow for a small integer power compiles into the exact same code: https://godbolt.org/g/CjoHdJ