[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] C coding question
From: |
Nigel Winterbottom |
Subject: |
RE: [avr-gcc-list] C coding question |
Date: |
Fri, 6 Oct 2006 09:09:36 +0100 |
> -----Original Message-----
> From: larry barello
> Specifically I was looking for an efficient way to encode
>
> (bSomeBool ^ (SomeBitMask & SomeVariable))
>
> to get a true/false output.
Does it have to be an expression ?
If not, what's wrong with:
if (SomeBitMask & SomeVariable)
bSomeBool = !bSomeBool;
Nigel