What is more efficient? Using pow to square or just multiply it with itself?

Posted by gnol on Stack Overflow See other posts from Stack Overflow or by gnol
Published on 2010-05-30T21:17:52Z Indexed on 2010/05/30 21:22 UTC
Read the original article Hit count: 203

Filed under:
|
|

What of these two methods is in C more efficient? And how about: pow(x,3) vs. x*x*x etc?

© Stack Overflow or respective owner

Related posts about c++

Related posts about c