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. Christian _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
