From: Steve Stevenson <steve@cl...> - 2012-06-16 00:43:59
This is a question rather than a bug ... I just want to have the
correct bit patterns. Can I turn off the trap and compute it? Put it
into hex? Really don't care how dirty it is.
D. E. (Steve) Stevenson
(Almost emeritus) Associate Professor
Director, Institute for Modeling and Simulation Applications.
steve at clemson dot edu
Anyone who has ever looked into the glazed eyes of a soldier dying on
the battlefield will think hard before starting a war. -Otto von
Bismarck, statesman (1815-1898)
Steve Stevenson <steve@...> writes:
> This is a question rather than a bug ... I just want to have the
> correct bit patterns. Can I turn off the trap and compute it? Put it
> into hex? Really don't care how dirty it is.
[ sbcl-help is probably a better place ]
The dirtiest way is probably to use sb-kernel:make-single-float (and
make-double-float). The functions aren't maximally logical -- the high
word argument of each of the functions is signed, not unsigned -- but
they construct a float out of 32-bit integer bit patterns in the obvious