[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Bitwise XOR in Lua?
- From: Benjohn Barnes <benjohn@...>
- Date: Mon, 9 Sep 2002 10:29:59 +0100
On Monday, September 9, 2002, at 10:24 am, Benjohn Barnes wrote:
On Sunday, September 8, 2002, at 09:34 pm, Björn De Meyer wrote:
Reuben Thomas wrote:
I'll add this routine (and band and bor) to the Lua standard
project, for those who have a similar problem.
http://www.mupsych.org/~rrt/ | wit, n. educated insolence
Well, bor is simply the sum of two positive numbers, IIRC.
Bit OR is analogous to addition, and often uses the same notation for
it's operator. However, if you add two numbers, the result's bit
vector will not (in general) be an elementwise xor of the argument's
Sorry, that should have read:
"...the result's bit vector will not (in general) be an elementwise OR
of the argument's bit vectors."