27 lines
476 B
C
27 lines
476 B
C
|
/*
|
||
|
(c) copyright 1989 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||
|
See the copyright notice in the ACK home directory, in the file "Copyright".
|
||
|
*/
|
||
|
|
||
|
/* $Header$ */
|
||
|
|
||
|
#include "misc.h"
|
||
|
|
||
|
int flt_status = 0;
|
||
|
|
||
|
flt_chk(e)
|
||
|
register flt_arith *e;
|
||
|
{
|
||
|
if (e->flt_exp >= EXT_MAX) {
|
||
|
flt_status = FLT_OVFL;
|
||
|
e->flt_exp = EXT_MAX;
|
||
|
e->m1 = e->m2 = 0;
|
||
|
}
|
||
|
if (e->flt_exp <= EXT_MIN) {
|
||
|
flt_status = FLT_UNFL;
|
||
|
e->flt_exp = 0;
|
||
|
e->m1 = e->m2 = 0;
|
||
|
e->flt_sign = 0;
|
||
|
}
|
||
|
}
|