comp.lang.ada
 help / color / mirror / Atom feed
From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner)
Subject: Re: Or
Date: 2000/01/31
Date: 2000-01-31T00:00:00+00:00	[thread overview]
Message-ID: <874qsl$a2g1@news.cis.okstate.edu> (raw)
In-Reply-To: vhioga2t8wa.fsf@ljod.ifi.uio.no

On 31 Jan 2000 19:04:37 +0100, Jan Kroken <jankr@nntp.ifi.uio.no> 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




  parent reply	other threads:[~2000-01-31  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <vhioga2t8wa.fsf@ljod.ifi.uio.no>
2000-01-31  0:00 ` Or Vladimir Olensky
2000-01-31  0:00 ` Or tmoran
2000-01-31  0:00 ` David Starner [this message]
2000-01-31  0:00 ` Or Mark A Biggar
2000-01-31  0:00 ` Or Gisle S�lensminde
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox