[gambit-list] magnitude vs hypot
Bradley Lucier
lucier at math.purdue.edu
Sat Mar 30 16:06:15 EDT 2019
On 3/30/19 1:27 PM, Bradley Lucier wrote:
> On 3/29/19 11:58 PM, Marc Feeley wrote:
>> Were you thinking of using glibc for better performance?
>
> Generally, I have tried not to rewrite code from glibc in the Gambit
> runtime,
After looking at this data, I recommend adding primitives
(flhypot x y)
(##flhypot x y)
to _num.scm, adding
FLHYPOT
to gambit.h and changing the compiler to inline flhypot and ##flhypot in
the right circumstances.
We could use the existing implementation of ##cabs as the implementation
for backends without hypot.
Brad
More information about the Gambit-list
mailing list