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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Examining individual bytes of an integer Date: Mon, 15 Oct 2018 10:05:02 +0100 Organization: A noiseless patient Spider Message-ID: References: <9d90fa3e-f800-4086-bf97-a65474a8140a@googlegroups.com> <4f2fb3ba-9cca-46ad-b970-ccbcb7d08a2c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="da8580838aa05a08cfb2548df7377043"; logging-data="27673"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xVmJYTqLs7zaEueO1zd6uOXdUIhB4NHw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:5gOD90bdV6XQrN7GJv/lAk9hyAs= sha1:PWcs3JxiTPofCSsLSixVSO35uxQ= Xref: reader02.eternal-september.org comp.lang.ada:54582 Date: 2018-10-15T10:05:02+01:00 List-Id: Matt Borchers writes: > of course if it matters, you still have to know the endian to > know if Y(1) or Y(4) is the low-order byte of Z. case System.Bit_Order is when System.High_Order_First => ... when System.Low_Order_First => ... end case;