[erlang-questions] math:pow(X, Y).

Richard O'Keefe ok@REDACTED
Tue Mar 20 23:17:05 CET 2012

On 21/03/2012, at 4:07 AM, Aleksandr Vinokurov wrote:

> Richard, what the point of writing two equal funs? rtpi and rtpf? Really.

There was originally one function.  However, they have different
*types*, and my hope was that HiPE would be able to exploit this
to generate code, at least for rtpf, that had no run-time tests
for "is this a float", and perhaps might even pass the arguments
around unboxed.

So yes, *really*, because thanks to the -specs, they don't have
exactly the same semantics.

More information about the erlang-questions mailing list