|
|
1.1 ! root 1: /* ! 2: * Test the linnux FPU-emu ! 3: */ ! 4: #include <misc.h> ! 5: #include <math.h> ! 6: #include <signal.h> ! 7: ! 8: extern void math_emulate(); ! 9: ! 10: main() ! 11: { ! 12: double a = 1.5, b = 0.5; ! 13: ! 14: signal(SIGFPE, math_emulate); ! 15: a += b; ! 16: xdump(&a, sizeof(a)); ! 17: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.