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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e1233ddaa2bb38b2 X-Google-Attributes: gid103376,public From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner) Subject: Re: Or Date: 2000/01/31 Message-ID: <874qsl$a2g1@news.cis.okstate.edu>#1/1 X-Deja-AN: 580051482 References: Organization: Oklahoma State University User-Agent: slrn/0.9.6.2 (Linux) Reply-To: dstarner98@aasaa.ofe.org Newsgroups: comp.lang.ada Date: 2000-01-31T00:00:00+00:00 List-Id: On 31 Jan 2000 19:04:37 +0100, Jan Kroken wrote: > >I need bitwise or on Interfaces.C.Int. I couldn't find any >direct or operator in Ada, so I wrote the following: [Code and stuff] > >But how do I implement bit or so that the compiler >will generate orl instead? If you really want it to use orl, use a machine code insertion and specifically put orl there. (Cf. GNAT Refrence Manual on the rather hairy specifics.) It's not portable, and the Ada solution (as posted by others) is better, but if you're really concerned about that level, nothing can be beat writting it at that level. -- David Starner - dstarner98@aasaa.ofe.org If you wish to strive for peace of soul then believe; if you wish to be a devotee of truth, then inquire. -- Friedrich Nietzsche