Closed ts826848 closed 3 years ago
Also, is it worth using an exponentiation-by-squares approach to pow()
instead of the current linear approach? Don't think it'll make a huge difference, but it should be a fairly easy change, too.
Also, is it worth using an exponentiation-by-squares approach to pow() instead of the current linear approach? Don't think it'll make a huge difference, but it should be a fairly easy change, too.
Probably. I'd certainly take a PR for it.
The pow() overload taking an unsigned second parameter was declared/defined after it was used in the other pow() implementation. This results in compilation errors [0]. Moving the unsigned overload above the signed overload fixes the issue.
[0]: