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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c5f68ab74d5099ee X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.212.232 with SMTP id nn8mr2583000pbc.1.1323887393565; Wed, 14 Dec 2011 10:29:53 -0800 (PST) Path: lh20ni22377pbb.0!nntp.google.com!news1.google.com!postnews.google.com!v29g2000yqv.googlegroups.com!not-for-mail From: awdorrin Newsgroups: comp.lang.ada Subject: Re: Interfaces.Shift_Left Date: Wed, 14 Dec 2011 10:28:24 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <18214312-82f5-45c4-b20d-cb530b500929@h3g2000yqa.googlegroups.com> <5f989095-5c1c-4b23-a538-d70f4718b4b1@l19g2000yqc.googlegroups.com> NNTP-Posting-Host: 192.91.173.36 Mime-Version: 1.0 X-Trace: posting.google.com 1323887393 9111 127.0.0.1 (14 Dec 2011 18:29:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 14 Dec 2011 18:29:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v29g2000yqv.googlegroups.com; posting-host=192.91.173.36; posting-account=YkFdLgoAAADpWnfCBA6ZXMWTz2zHNd0j User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESRCNK X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-12-14T10:28:24-08:00 List-Id: I understand what you are saying and I do agree in theory. The situation is that bit shifting is being used to retrieve data of various bit lengths and positions from compound records. For instance, retrieving a 6-bit signed value from a 32-bit field. For the purposes of obtaining those 6 bits - sign is irrelevant, but that 6 bit value is then sent back to a calling process as an 'Int32' so I need the sign then. Given more time and funding, I would replace this logic with something that makes more sense, but a quick Unchecked_Conversion saves rewriting 15,000+ lines of code. :)