From: Kai Dietrich Newsgroups: comp.os.msdos.djgpp Subject: Re: 128 bit integer Date: Wed, 8 Aug 2001 19:20:23 +0200 Organization: T-Online Lines: 23 Message-ID: <9krscn$miu$04$1@news.t-online.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 997291223 04 23134 LnTqSeRVSfYDbJ 010808 17:20:23 X-Complaints-To: abuse AT t-online DOT com X-Sender: 320009961467-0001 AT t-dialin DOT net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Message by Lawrence Rust on: 08.08.01 17:07:35 THX, this was the answer I needed. It is a great help. >unsigned char a[2], b[2], sum[2], carry; > >sum[0] = a[0] + b[0]; >carry = sum[0] < a[0] ? 1 : 0; >sum[1] = a[1] + b[1] + carry; > >Subtraction follows similarly. is this correct: sum[0] = a[0] - b[0]; carry = sum[0] > a[0] ? 1 : 0; sum[1] = a[1] - b[1] - carry; >NB it's not good etiquette to post in HTML to usenet groups. Sorry, it was my ng reader. hope this posting is not HTML