comp.lang.ada
 help / color / mirror / Atom feed
* How to perform bit-wise xor, and...?
@ 1996-11-22  0:00 Leong San Io Francisco
  1996-11-22  0:00 ` Matthew Heaney
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Leong San Io Francisco @ 1996-11-22  0:00 UTC (permalink / raw)



Hi!

	Can someone teach me how to perform bit-wise "xor", and, "or" of two
integers in Ada so that it can generate code as close as to the underlying
computer's instructions like the C's ^, &, | operators? I am trying to write
some computer instructions emulation stuff as well as bitmap graphics
manipulation which requires "xor", "or" bytes. Is multiplication by 2 really
equal to shift left and division by integer 2 to shift right?
	My Ada compiler only provides xor, and operations for booleans and
not integers...

Thanks.
Francisco Leong




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1996-11-27  0:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-11-22  0:00 How to perform bit-wise xor, and...? Leong San Io Francisco
1996-11-22  0:00 ` Matthew Heaney
1996-11-24  0:00   ` Brian
1996-11-27  0:00     ` Robert Dewar
1996-11-22  0:00 ` Larry Kilgallen
1996-11-23  0:00   ` Leong San Io Francisco
1996-11-24  0:00   ` Michael F Brenner
1996-11-25  0:00 ` Robert I. Eachus

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