::pow(T, n) vs std::pow(T, n) for non-constant n

Gabriel Dos Reis gdr@integrable-solutions.net
Sun Mar 14 20:41:00 GMT 2004

Richard Guenther <rguenth@tat.physik.uni-tuebingen.de> writes:

| exponent.  This is why I suggest for __builtin_pow not to dispatch to
| the library for non-const arguments, but to an internal routine
| modeled after the v3 binary algorithm.

There definitely should be a __builtin_powi() and the like.  But I
don't like that std::pow(, 4) and std::pow(, n) (with n == 4) should
give different results.

-- Gaby

More information about the Libstdc++ mailing list