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