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: b64_add.c,v 1.6 1994/06/24 11:15:27 ceriel Exp $ */
12 register struct flt_mantissa *e1,*e2;
17 /* add higher pair of 32 bits */
18 overflow = ucmp((long)0xFFFFFFFF - e1->flt_h_32, e2->flt_h_32) < 0;
19 e1->flt_h_32 += e2->flt_h_32;
21 /* add lower pair of 32 bits */
22 carry = ucmp((long)0xFFFFFFFF - e1->flt_l_32, e2->flt_l_32) < 0;
23 e1->flt_l_32 += e2->flt_l_32;
25 if ((carry) && ((++e1->flt_h_32 &~0xFFFFFFFF) || e1->flt_h_32 == 0)) {
27 return(1); /* had a 64 bit overflow */
29 return(overflow); /* return status from higher add */