www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/05/04:25:54

Message-ID: <000f01bfe659$adb28960$cc6a4518@gvcl1.bc.wave.home.com>
From: "Dan Gold" <axis AT home DOT com>
To: <djgpp AT delorie DOT com>
References: <396368E3 DOT 14602 DOT 6A4366 AT localhost>
Subject: Re: [ot] - some basic stuff BLAH!
Date: Wed, 5 Jul 2000 01:19:02 -0700
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Reply-To: djgpp AT delorie DOT com

Okay, quicky explanation using really ugly formating...=)

The logical OR means is any of the coninciding bits are set they are
flagged.
When you saw "or" you mean one or the other, so if one of the other bit is
set
its true...plain simple english, all computer languages are at some level or
symbol.

[ 0011 ]  |
[ 0110 ]
--------becomes
[ 0111 ]
--------cause either bit has to contain a 1.

The XOR or exclusive OR means only if they are different.
So think of the word "exclusive", like an exclusive restaurant, only certain
cases
can get in.  So OR's are not allowed in, cause only the ones where they
are exlusively different can get in.  Cause "or" is one or the other.  So it
like saying "you
gotta be one or the other exclusively to get in my restaurant bub!"

[ 0011 ] ^
[ 0110 ]
--------becomes
[ 0101 ]
--------cause they are different.

From Dan Gold.

----- Original Message -----
From: <Leon AT caresystems DOT com DOT au>
To: <djgpp AT delorie DOT com>
Sent: Tuesday, July 04, 2000 11:57 PM
Subject: Re: [ot] - some basic stuff


> On 5 Jul 2000, at 6:10, smile773 wrote:
>
> > bitwise OR of x and y       x|y
> > Exclusive OR x and y        x^y
>
> yeah but what is the difference?
> if i use | symbol
> does that mean if either bit is 1 then the result
> bit is 1
>
> but then what does the exclusive ^ thing does?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019