[H-GEN] Mysql & bitwise xor
Greg Black
gjb at gbch.net
Mon Nov 17 06:44:29 EST 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
On 2003-11-17, Paul Clarke wrote:
> So, the next question is what is the logic needed to do an xor using
> only &, |, and ~ (and, or, and not)?
Have you tried substituting X | ~Y for X ^ Y?
> Or will it be easier to do the
> calculation in php and writhing the result back?
This was a joke, right?
Cheers, Greg
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list