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,4e9860765413318c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-23 17:00:05 PST Path: archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Hi byte and Lo Byte Question Date: 23 Aug 2001 17:00:05 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0108231600.5364fec2@posting.google.com> References: <9m0gn6$b6j$1@zeus.orl.lmco.com> <3B843C0C.9A3282B@raytheon.com> <3B844CE7.B6C85990@san.rr.com> <3B850FA6.21711F4@raytheon.com> NNTP-Posting-Host: 205.232.38.244 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 998611205 22426 127.0.0.1 (24 Aug 2001 00:00:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 24 Aug 2001 00:00:05 GMT Xref: archiver1.google.com comp.lang.ada:12364 Date: 2001-08-24T00:00:05+00:00 List-Id: Mark Johnson wrote in message news:<3B850FA6.21711F4@raytheon.com>... > They work, along with several others. I picked the ones w/ mask & shifts > because older compilers tend to generate good code for them [the > examples you provide require the compiler to detect division by a power > of two and convert...]. But shifts and masking operations don't exist in Ada 83! So "older compilers" won't get far that way (and in any case, a compiler that does not recognize division by powers of 2 is a bit creaky -- are there really such?)