chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] Floating point performance


From: Peter Bex
Subject: Re: [Chicken-hackers] Floating point performance
Date: Wed, 24 Apr 2019 17:20:18 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Thu, Apr 18, 2019 at 06:28:11PM +0200, Peter Bex wrote:
> Now, fp+ is only inlineable if the scrutinizer can prove that it's adding
> flonums, otherwise it falls back to a CPS call.  I'm sure we can change
> that relatively easily by making it into an inline function that uses
> check_flonum or so.  We could rename the current one to C_a_u_i_flonum_plus,
> which is more correct anyway since it's unsafe and may crash when given
> another kind of object.
> 
> Of course this means several more intrinsics will have to be added as
> safe versions for each of the specific flonum operators.  Thoughts?

OK, maybe we can do it differently and more controlled by automating
this.  I've created http://bugs.call-cc.org/ticket/1611 to track this.

I believe this approach also allows us to get rid of some of the rewrites
in c-platform.scm, which I've always found quite an eyesore.

Cheers,
Peter

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]