| www.delorie.com/archives/browse.cgi | search |
| From: | Kai Dietrich <toepferei DOT dietrich AT t-online DOT de> |
| 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: | <Ysdc7.12907$da2 DOT 54030 AT news11-gui DOT server DOT ntli DOT net> |
| Mime-Version: | 1.0 |
| 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 <lvr AT NOsoftSPsystemAM DOT co DOT uk> 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |