* Copyright (c) 1982 The Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)EXCEPT.c 1.5 (Berkeley) %G%";
* catch runtime arithmetic errors
ERROR("Overflow, underflow, or division by zero in arithmetic operation\n");
* The values for this switch statement come from page 12-5 of
* Volume 1 of the 1978 VAX 11/780 Architecture Handbook
ERROR("Integer overflow\n");
ERROR("Integer division by zero\n");
ERROR("Real overflow\n");
ERROR("Real division by zero\n");
ERROR("Real underflow\n");
ERROR("Undefined arithmetic exception type (%d)\n", type
);