correction
This commit is contained in:
parent
95cfd33824
commit
c246adf1c4
2 changed files with 2 additions and 19 deletions
|
@ -71,12 +71,6 @@ extern int flt_status;
|
||||||
.B flt_b64_sft(m, n)
|
.B flt_b64_sft(m, n)
|
||||||
.B struct flt_mantissa *m;
|
.B struct flt_mantissa *m;
|
||||||
.B int n;
|
.B int n;
|
||||||
.PP
|
|
||||||
.B flt_b64_rsft(m)
|
|
||||||
.B struct flt_mantissa *m;
|
|
||||||
.PP
|
|
||||||
.B flt_b64_lsft(m)
|
|
||||||
.B struct flt_mantissa *m;
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
This set of routines emulates floating point arithmetic, in a high
|
This set of routines emulates floating point arithmetic, in a high
|
||||||
precision. It is intended primarily for compilers that need to evaluate
|
precision. It is intended primarily for compilers that need to evaluate
|
||||||
|
@ -253,18 +247,6 @@ If
|
||||||
is negative, it is a left-shift; If
|
is negative, it is a left-shift; If
|
||||||
.I n
|
.I n
|
||||||
is positive, it is a right shift.
|
is positive, it is a right shift.
|
||||||
.PP
|
|
||||||
The routine
|
|
||||||
.I flt_b64_rsft
|
|
||||||
shifts the mantissa
|
|
||||||
.I m
|
|
||||||
1 bit right.
|
|
||||||
.PP
|
|
||||||
The routine
|
|
||||||
.I flt_b64_lsft
|
|
||||||
shifts the mantissa
|
|
||||||
.I m
|
|
||||||
1 bit left.
|
|
||||||
.SH FILES
|
.SH FILES
|
||||||
~em/modules/h/flt_arith.h
|
~em/modules/h/flt_arith.h
|
||||||
.br
|
.br
|
||||||
|
|
|
@ -16,12 +16,13 @@ flt_chk(e)
|
||||||
flt_status = FLT_OVFL;
|
flt_status = FLT_OVFL;
|
||||||
e->flt_exp = EXT_MAX;
|
e->flt_exp = EXT_MAX;
|
||||||
e->m1 = 0x80000000;
|
e->m1 = 0x80000000;
|
||||||
|
e->m2 = 0;
|
||||||
}
|
}
|
||||||
if (e->flt_exp <= EXT_MIN) {
|
if (e->flt_exp <= EXT_MIN) {
|
||||||
flt_status = FLT_UNFL;
|
flt_status = FLT_UNFL;
|
||||||
e->flt_exp = 0;
|
e->flt_exp = 0;
|
||||||
e->m1 = 0;
|
e->m1 = 0;
|
||||||
e->flt_sign = 0;
|
e->flt_sign = 0;
|
||||||
|
e->m2 = 0;
|
||||||
}
|
}
|
||||||
e->m2 = 0;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue