comp.lang.ada
 help / color / mirror / Atom feed
From: Bryan@SU-SIERRA.ARPA (Doug Bryan)
Subject: Re: AND, OR & XOR on integers
Date: Tue, 25-Mar-86 11:20:25 EST	[thread overview]
Date: Tue Mar 25 11:20:25 1986
Message-ID: <8603251655.AA00826@ucbvax.berkeley.edu> (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
-------

             reply	other threads:[~1986-03-25 16:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1986-03-25 16:20 Doug Bryan [this message]
     [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
replies disabled

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