In article <1281876071.1741.31.camel@jonathan-desktop>, Jonathan Osuch <osuchj@avalon.net> writes:
So, I started adding sanity checks in the complex number sin/cos/exp/log functions in fpu087.c using isnan(), islessequal, and isinf() macros (built into gcc). All of the nan's and most of the inf's have been eliminated.
What I'm looking at now is coding the builtin exp() function similar to how the FPU has to calculate it FPUcplxexp387() in fpu387.asm. This will slow down the calculation, but should eliminate the errors.
Cool! I look forward to seeing the patch! -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/> Legalize Adulthood! <http://legalizeadulthood.wordpress.com>