On 09/23/2009 05:44 AM, Brian Mastenbrook wrote:
> I'm curious about why no Scheme provides IEEE single floats. It doesn't
> seem to be an intrinsically Scheme design decision, and as you point out
> all extant Common Lisp implementations provide them. Would any
> implementors care to comment?
Kawa does support IEEE single floats, though not 100%.
For example if two operands to + have the types float
or java.lang.Float, then float addition is performed.
If the types of the operands are known at compile-time,
then the Kawa compiler generates an fadd byte-code
instruction.
Kawa does not support single-float literals, but I made
a note to myself to fix this ... (It's easy enough:
If the exponent letter 's' or 'f' is seen, create a
java.lang.Float object, rather than a gnu.math.DFloNum.)
--
--Per Bothner
[email protected] http://per.bothner.com/
_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss