Is there a way to do a ! operation using only ~ & ^ | + << or >>
For example, instead of doing !! (a ^ x) (where a is = 0)
I've done something to the effect of:
It works for everything except 0x80000000 on a 32bit os.Code:int x; x = (1 << x); x = (x + 1) & 1; return x; }
thanks,