Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi all,
I want to perform NOT operation(Changing zero's to 1's and 1's to zero's).

I have a macro say FLAG, I said '~FLAG'. This is giving me wrong result.

If FLAG=16, result is -32.

Why?

Regards,
Sumana

for a 16 bit int do ^ 0xffff

for a 16 bit int do ^ 0xffff