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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,553a6b79b2471571 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!newsserver.news.garr.it!newsserver.cilea.it!docenti.ing.unipi.it!o2943499 From: Colin Paul Gloster Newsgroups: comp.lang.ada Subject: Re: How do you bitwise operations in Ada '83 and '95 Date: Thu, 20 Jul 2006 11:29:28 +0200 Organization: CILEA Message-ID: <20060720112346.C65387@docenti.ing.unipi.it> References: <9315684D-C216-4EDA-8852-0A6BD4C275B0@amado-alves.info> <44bf3301$0$10529$9b4e6d93@newsread4.arcor-online.net> Reply-To: Colin Paul Gloster NNTP-Posting-Host: docenti.ing.unipi.it Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: newsserver.cilea.it 1153387768 13986 131.114.28.20 (20 Jul 2006 09:29:28 GMT) X-Complaints-To: news@cilea.it NNTP-Posting-Date: 20 Jul 2006 09:29:28 GMT X-X-Sender: o2943499@docenti.ing.unipi.it In-Reply-To: <44bf3301$0$10529$9b4e6d93@newsread4.arcor-online.net> Xref: g2news2.google.com comp.lang.ada:5830 Date: 2006-07-20T09:29:28+00:00 List-Id: On Thu, 20 Jul 2006, Georg Bauhaus wrote: "Marius Amado-Alves wrote: > Note that I don't do bit shifting. Instead I multiply or divide by a > magnitude. I don't think bit shifting is portable. Why should language defined Interfaces.Shift_Right, Interfaces.Shift_Right_Arithmetic, Rotate etc. be any less portable than language defined arithmetic, as implemented by the same compiler?" Interfaces.Shift_Right etc. are unportable in Ada: WWW.AdaIC.org/standards/05aarm/html/AA-B-2.html#I7056 No actual implementation is required to have a datatype for Annex B identical to a replacement of Interfaces.Unsigned_n in another implementation.