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 10:15:44 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!news-east.rr.com!news-west.rr.com!lsnws01.we.mediaone.net!typhoon.san.rr.com.POSTED!not-for-mail Message-ID: <3B853A3F.2A459764@san.rr.com> From: Darren New Organization: Boxes! X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Hi byte and Lo Byte Question References: <9m0gn6$b6j$1@zeus.orl.lmco.com> <3B843C0C.9A3282B@raytheon.com> <3B844CE7.B6C85990@san.rr.com> <3B850FA6.21711F4@raytheon.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 23 Aug 2001 17:15:44 GMT NNTP-Posting-Host: 24.165.20.229 X-Complaints-To: abuse@rr.com X-Trace: typhoon.san.rr.com 998586944 24.165.20.229 (Thu, 23 Aug 2001 10:15:44 PDT) NNTP-Posting-Date: Thu, 23 Aug 2001 10:15:44 PDT Xref: archiver1.google.com comp.lang.ada:12345 Date: 2001-08-23T17:15:44+00:00 List-Id: > 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...]. I was using C compilers under CP/M that could handle this, so it couldn't be *that* hard. :-) I like it because it's symetric in the case of non-binary bases. high_digit := (value mod 10) low_digit := (value / 10) -- Darren New / Senior MTS & Free Radical / Invisible Worlds Inc. San Diego, CA, USA (PST). Cryptokeys on demand. dnew@san.rr.com When was sliced bread invented?