2 (c) copyright 1989 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 See the copyright notice in the ACK home directory, in the file "Copyright".
6 /* $Id: flt_modf.c,v 1.6 1994/06/24 11:15:58 ceriel Exp $ */
11 flt_modf(e, ipart, fpart)
12 register flt_arith *e, *ipart, *fpart;
18 ipart->m1 = ipart->m2 = 0;
21 if (e->flt_exp >= 63) {
24 fpart->m1 = fpart->m2 = 0;
29 /* "loose" low order bits */
30 flt_b64_sft(&(ipart->flt_mantissa), 63 - e->flt_exp);
31 flt_b64_sft(&(ipart->flt_mantissa), e->flt_exp - 63);
32 flt_sub(e, ipart, fpart);