[prev in list] [next in list] [prev in thread] [next in thread]
List: sbcl-devel
Subject: [Sbcl-devel] Regression in float truncate and friends
From: Christophe Rhodes <csr21 () cantab ! net>
Date: 2009-11-25 11:17:25
Message-ID: 874ooilupm.fsf () cantab ! net
[Download RAW message or body]
Hi,
Prior to 1.0.30.38, the following
(compile nil '(lambda (x)
(declare (type (single-float 0.0 1.0) x)
(optimize speed (safety 0)))
(values (truncate (* x 1000.0)))))
compiles without notes to straight-line FPU code. In current HEAD, the
same compiles to a full call to %UNARY-TRUNCATE/SINGLE-FLOAT. If I had
to guess, based on the compiler notes generated, I'd guess that the type
derivation information from TRUNCATE gets lost along the way.
Since I think this isn't actually a regression from the previous
release, I'm not going to hold the release for it, but I will accept a
tested and reviewed patch if someone produces one.
Cheers,
Christophe
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Sbcl-devel mailing list
Sbcl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sbcl-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic