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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.236.96.138 with SMTP id r10mr12791480yhf.12.1391510029379; Tue, 04 Feb 2014 02:33:49 -0800 (PST) X-Received: by 10.140.25.242 with SMTP id 105mr404019qgt.8.1391510029361; Tue, 04 Feb 2014 02:33:49 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!f11no12273715qae.1!news-out.google.com!y18ni3283qap.1!nntp.google.com!k15no12247918qaq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 4 Feb 2014 02:33:49 -0800 (PST) In-Reply-To: <18q1ats1rko50$.zp43ryd37uis.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.7.16.20; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 91.7.16.20 References: <20a36d96-850e-4020-8dfa-777eb9c944f4@googlegroups.com> <9e27abb7-e944-4bd4-a10c-600fe4da7872@googlegroups.com> <56a5aeb6-8704-457c-a24f-b664746afe72@googlegroups.com> <13pvagjpwejni$.1e8ll5btxg1f5$.dlg@40tude.net> <5bf8c737-b99d-4069-885f-03fe82f06cc6@googlegroups.com> <14k7gbu5ws82b.3pn20kh5ci50.dlg@40tude.net> <1txs6yifzioke$.30cghpl6qq1j$.dlg@40tude.net> <18q1ats1rko50$.zp43ryd37uis.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Binary and XML serialization of types From: AdaMagica Injection-Date: Tue, 04 Feb 2014 10:33:49 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2747 X-Received-Body-CRC: 2819498204 Xref: news.eternal-september.org comp.lang.ada:18365 Date: 2014-02-04T02:33:49-08:00 List-Id: > P.S. I cannot find a reference in RM which states the semantics of > > Shift_Left. I presume that it is such that > > Shift_Left (2#0001#, 1) =3D 2#0010# > B.2(9) should be clear enough, especially when you take into account the la= st sentence about tight shift: For each such modular type in Interfaces, shifting and rotating subprograms= as specified in the declaration of Interfaces above. These subprograms are= Intrinsic. They operate on a bit-by-bit basis, using the binary representa= tion of the value of the operands to yield a binary representation for the = result. The Amount parameter gives the number of bits by which to shift or = rotate. For shifting, zero bits are shifted in, except in the case of Shift= _Right_Arithmetic, where one bits are shifted in if Value is at least half = the modulus.=20 (Note that more significant bits in any scalar value independently of its l= ength are always left from less significant ones, independently whether you= count bits from left to right (BE) or rigth to left (LE).)