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 17:11:32 +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="26543"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1nlFNc3csQXOC1uQwYbiyPbbdFGNbJbA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:my0KVpAw1f6aVoZcMrlCNIIodH8= sha1:+WpFpxeXCl/hHpWrCdvGW8tdSjo= Xref: reader02.eternal-september.org comp.lang.ada:54594 Date: 2018-10-15T17:11:32+01:00 List-Id: Simon Wright writes: > 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 System.Default_Bit_Order > when System.High_Order_First => > ... > when System.Low_Order_First => > ... > end case;