From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5d8aa287369d5d4c X-Google-Attributes: gid103376,public From: Jaap Douma Subject: Re: ones complement Date: 1998/08/26 Message-ID: <35E3AAAD.1D858015@Fokkerspace.nl>#1/1 X-Deja-AN: 384833009 Content-Transfer-Encoding: 7bit References: <35DD8731.F8E756AB@bill.com> To: Richard Paladino Content-Type: text/plain; charset=us-ascii Organization: Fokker Space Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-08-26T00:00:00+00:00 List-Id: Hello, i have the next two examples: -- image checksum is last 16 bits of ones complement of sum of 16-bit bytes Srec_Image_Checksum := 16#FFFF# - Srec_Image_Checksum ; -- last 8 bits of ones complement of sum of bytes Sum := 16#Ff# - (Sum mod 16#100#) ; Richard Paladino wrote: > > Hello, > > Is there an ada function for the c ~ function? > > Thanks