[plt-dev] `unsafe-fl' and unboxing

From: Doug Williams (m.douglas.williams at gmail.com)
Date: Sat Oct 3 16:54:26 EDT 2009

One more thing. Is there a one argument unsafe-fx- and unsafe-fl- to negate
a fixnum or float? [I suppose the same question would apply to
division/inversion, although I don't use it as much.] Obviously, I can use
(unsafe-fl- 0.0 x) for (unsafe-fl- x).

On Sat, Oct 3, 2009 at 4:07 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> Yes, I can add those.
>
> At Sat, 3 Oct 2009 15:27:57 -0400, Doug Williams wrote:
> > Matthew,
> >
> > Do you think you can sneak in unsafe-fx-abs and unsafe-fl-abs? It's a
> pretty
> > common function - at least in the science collection - that I assume
> would
> > compile nicely. [I promise not to ask for too many of these.]
> >
> > Doug
> >
> > On Sat, Oct 3, 2009 at 12:56 PM, Matthew Flatt <mflatt at cs.utah.edu>
> wrote:
> >
> > > `inexact-real?'
> > >
> > > At Sat, 3 Oct 2009 12:47:35 -0400, Doug Williams wrote:
> > > > Is there an existing contract to check for a float? For example, mean
> > > would
> > > > now be guaranteed to return a float instead of a real. It would be
> nice
> > > to
> > > > specify this is the contract.
> > > >
> > > > On Sat, Oct 3, 2009 at 12:36 PM, Matthew Flatt <mflatt at cs.utah.edu>
> > > wrote:
> > > >
> > > > > At Sat, 3 Oct 2009 12:29:01 -0400, Doug Williams wrote:
> > > > > > Are the basic unsafe-fl, unsafe-fx, and unsafe-vector-ref
> operations
> > > > > > included in 4.2.2?
> > > > >
> > > > > Yes --- except for `unsafe-fx->fl', which is new in 4.2.2.3.
> > > > >
> > > > >
> > >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20091003/ecacc483/attachment.html>

Posted on the dev mailing list.