BSD 4_3 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Tue, 8 Jun 1982 13:36:39 +0000 (05:36 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Tue, 8 Jun 1982 13:36:39 +0000 (05:36 -0800)
Work on file usr/src/undoc/fpe.c

Synthesized-from: CSRG/cd1/4.3

usr/src/undoc/fpe.c [new file with mode: 0644]

diff --git a/usr/src/undoc/fpe.c b/usr/src/undoc/fpe.c
new file mode 100644 (file)
index 0000000..7a44b4a
--- /dev/null
@@ -0,0 +1,22 @@
+From research!ikeya!rob  Sun Sep 13 17:04:21 1981
+/*
+ * This program prints an infinite number of fpe's,
+ * because the pc is not advanced on FPE's.
+ * 11/750 microcode bug.
+ * On 11/780, die from Operand fault, which is
+ * correct.
+ * Please try it on your 750 and tell me what happens.
+*/
+#include <signal.h>
+inter(){
+       printf("fpe\n");
+       signal(SIGFPE, inter);
+       return;
+}
+main(){
+       double x=0.0;
+       signal(SIGFPE, inter);
+       printf("%f\n", 3.4/x);
+}
+
+