On Sun, 2002-01-20 at 10:47, Norman Vine wrote: > Tony Peden writes: > > > >Well, I've spent quite a few hours on this and AFAICT, the FPU > >is being set up correctly, it's just not generating the exception > >for a floating point divide by zero (or any other floating point error > >I could induce). Integer divide by zero works just fine. > > Tony > > Try adding this in addition to your other flags > > #ifdef linux > /* Linux used to deliver SIGFPE by default, but no longer. Sigh. */ > __setfpucw(0x1372); > #endif
Do you know what header and lib this is in? It's in fpu_control.h in the glibc (2.2) source, but not in the fpu_control.h installed on the system. Declaring it extern just generates complaints from the linker. > > Cheers > > Norman > > > > > > _______________________________________________ > Flightgear-devel mailing list > [EMAIL PROTECTED] > http://mail.flightgear.org/mailman/listinfo/flightgear-devel > -- Tony Peden [EMAIL PROTECTED] We all know Linux is great ... it does infinite loops in 5 seconds. -- attributed to Linus Torvalds _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
