On Sun, Sep 28, 2008 at 08:45:12PM +0200, Christian Heimes wrote:
> Gabriel Gellner wrote:
> > Are there any best practices for doing this in Cython, I have some old C 
> > code
> > that I could just convert into a pxd file, but I am not sure if there is a
> > idomatic/standard way.
> > 
> > Pointers to code that already deals with this (in Sage maybe) would be 
> > greatly
> > appreciated.
> 
> I don't think that Cython has special code for IEEE 754 code. But you 
> can grab Python 2.6 sources and look how Mark and I have implemented the 
> IEEE 754 fixes for floats and complex. The interesting parts are in 
> Include/pymath.h, pyconfig.h, PC/pyconfig.h, Objects/floatobject.c, 
> Modules/mathmodule.c and Modules/cmathmodule.c
> 
> The changes are heavily based on the draft of the C99 standard, 
> WG14/N1124 Annex F and G.
> 
Thanks for the pointer. I will look at this this weekend. Thanks for doing
this for python!

Gabriel
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to