warning question
Peter Dufault
dufault at hda.com
Tue May 12 00:07:55 UTC 2009
On May 11, 2009, at 3:22 , Arnout Vandecappelle wrote:
>> *IE_CMD_CFG_PROMISC(buf) = !!promiscuous | manchester << 2;
>
> This means (!!promiscuous) | (manchester << 2). It looks OK to me,
> though
> adding parenthases around as I did certainly makes things clearer.
>
> The !! is a trick to make sure you have a 1, not just any non-zero
> int.
>
I must be tired. Why would "manchester << 2" be anything well-defined
in the zero bit?
Peter
More information about the users
mailing list