2 (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 See the copyright notice in the ACK home directory, in the file "Copyright".
9 * these are the routines the routines to do 32 and 64-bit addition
16 # include "FP_types.h"
20 # define MAXBIT 0x80000000L
28 * pointers to 64 bit 'registers'
32 register int overflow;
35 /* add higher pair of 32 bits */
36 overflow = ((unsigned long) 0xFFFFFFFF - e1->h_32 < e2->h_32);
39 /* add lower pair of 32 bits */
40 carry = ((unsigned long) 0xFFFFFFFF - e1->l_32 < e2->l_32);
43 printf("\t\t\t\t\tb64_add: overflow (%d); internal carry(%d)\n",
47 if ((carry) && (++e1->h_32 == 0))
48 return(TRUE); /* had a 64 bit overflow */
49 return(overflow); /* return status from higher add */