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,ba0524a97c5a11cf X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!f36g2000pri.googlegroups.com!not-for-mail From: Shark8 Newsgroups: comp.lang.ada Subject: Re: Help with low level Ada Date: Sat, 19 Mar 2011 20:45:51 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <21e55933-291b-46a9-8659-3edf83d963b4@u3g2000vbe.googlegroups.com> <21a94695-4cdb-4dc8-8b11-389adff8a2d9@v11g2000prb.googlegroups.com> NNTP-Posting-Host: 174.28.172.140 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1300592751 479 127.0.0.1 (20 Mar 2011 03:45:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 20 Mar 2011 03:45:51 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f36g2000pri.googlegroups.com; posting-host=174.28.172.140; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15 ( .NET CLR 3.5.30729; .NET4.0E),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:18323 Date: 2011-03-19T20:45:51-07:00 List-Id: On Mar 17, 11:59=A0am, Jeffrey Carter wrote: > On 03/17/2011 10:46 AM, Shark8 wrote: > > > > > Letting I_1& =A0I_2 be unsigned integers XOR-ing them could > > be achieved via this: > > Bitwise "and", "or", "xor", and "not" are defined for all modular types. = You can > simply say > > I_1 xor I_2 > > -- > Jeff Carter > "We use a large, vibrating egg." > Annie Hall > 44 Ah, you're right! perhaps I should have said signed. {I've been messing with OpenGL's 10- & 11-bit floating-point numbers and so immediately thought of their exponent & mantissa fields which you might implement as either modular-types or natural-constrained subtypes.}