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-Thread: 103376,36b302576d78847a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 20 Jul 2006 12:54:12 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Fwd: How do you bitwise operations in Ada '83 and '95 References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Thu, 20 Jul 2006 12:54:12 -0500 NNTP-Posting-Host: 67.164.83.70 X-Trace: sv3-QvNlQdbX9D67mKLAh5eknBJxiP+aKD1OD3iWHb4ZRa5liHIB8Iq4HjTx0oHZbLL8VtBFGDLhiSzpSiL!Vb/TgeDZlbq0UEyoockRhk2yaeuSb4OUXSdEoonI25HG1vdbJ5rtZ1ZlIauLBOscqLy1vwvNgpRP!qf2lCFL1CG/mSg== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:5841 Date: 2006-07-20T12:54:12-05:00 List-Id: >To me bit shifting is a positional thing. Surely positions differ And why is it again that you want to DIY instead of using a record specification and thus leaving it to the compiler to generate fast, correct, code to handle the shifting and masking? (Since the Subject line mentions "bitwise" operations, you presumably are multiplying and dividing by powers of two on a binary machine, right?)