delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/17/10:00:32

From: "Florent" <florent AT oih DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: twin complement ......
Date: Thu, 17 Aug 2000 15:57:17 +0200
Organization: Aachen University of Technology (RWTH)
Lines: 17
Message-ID: <8ngqu9$fl8$1@nets3.rz.RWTH-Aachen.DE>
NNTP-Posting-Host: pupulse.oih.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 966520585 16040 137.226.149.42 (17 Aug 2000 13:56:25 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 17 Aug 2000 13:56:25 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

Is there any fonctions for the twin complement ?

For example with 10 (in hexa) the twin complement is 16 but when I tried to
get it in my computer with
(~value)+1
... it's completly wrong because the programme do the "non" booleen
operation on all the bits

I will have to make it myself or there is a fonction for it ?

thank you for your help,

Florent.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019