comp.lang.ada
 help / color / mirror / Atom feed
* Re: AND, OR & XOR on integers
@ 1986-03-25 16:20 Doug Bryan
  0 siblings, 0 replies; 7+ messages in thread
From: Doug Bryan @ 1986-03-25 16:20 UTC (permalink / raw)



I think Erland ment something like:

	function "xor" (l, r : integer) return integer;

The real question is why would you want to xor two "integers".  If you
are treating integers as arrays of  (16 | 32) booleans, do so...

	type word is array (0 .. 15) of boolean;
	pragma pack (word);

now the functions xor, not, and, or are predefined for type word.

doug
-------

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

end of thread, other threads:[~1986-04-17  2:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <306@telesoft.UKE>
1986-03-18 16:55 ` Orphaned Response stt
1986-03-23 16:12   ` AND, OR & XOR on integers Erland Sommarskog
1986-03-31 14:34     ` stt
1986-04-14 23:48       ` David desJardins
1986-04-17  2:09         ` Dik T. Winter
1986-04-17  2:20           ` Dik T. Winter
1986-03-25 16:20 Doug Bryan

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