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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,91e38895ea853f4b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-28 17:23:19 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Bit_Order useful [was Query on portable bit extraction] Date: 28 Oct 2001 17:23:19 -0800 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0110281723.7a55fb54@posting.google.com> References: <9req9o$tlsg8$1@ID-25716.news.dfncis.de> <3BDB5FB6.94899C3C@acm.org> <9rhlhr$u11j3$1@ID-25716.news.dfncis.de> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1004318599 25724 127.0.0.1 (29 Oct 2001 01:23:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 29 Oct 2001 01:23:19 GMT Xref: archiver1.google.com comp.lang.ada:15319 Date: 2001-10-29T01:23:19+00:00 List-Id: "Nick Roberts" wrote in message news:<9rhlhr$u11j3$1@ID-25716.news.dfncis.de>... > I know there are some big-endian machines (the more recent ones, perhaps) > whose manufacturers' documentation number the LSB as 0 and the MSB as 31 or > 63. This is highly confused if it happens. Bit numbering must match byte ordering, or you get into a mess. The 68K was notoriously messed up on this point (see the discussion of this point in my book on microprocessors). Certainly in Ada, the bit numbering should match the byte ordering, or you will end up with non-contiguous fields and a big mess.