[Numpy-discussion] Portable functions for nans, signbit, etc.

Charles R Harris charlesr.harris at gmail.com
Thu Oct 2 09:31:29 EDT 2008


On Thu, Oct 2, 2008 at 2:41 AM, David Cournapeau <cournape at gmail.com> wrote:

> On Thu, Oct 2, 2008 at 11:41 AM, Charles R Harris
> <charlesr.harris at gmail.com> wrote:
>
> >
> > Which is rather clever. I think binary_cast will require some pointer
> abuse.
>
> Yep (the funny thing is that the bit twiddling will likely end up more
> readable than this C++ stuff)
>

The zip file has the bit twiddling, which is worth looking at if only for
the note on the PPC extended precision. Motorola seems to  be a problem but
I don't think we support any of the 66xx series.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20081002/3c8f6dd4/attachment.html>


More information about the NumPy-Discussion mailing list