In C language, I often see if
statements in such form:
#define STATUS 0x000A
UINT16 InterruptStatus;
if (InterruptStatus & STATUS)
{
<do something here....>
}
If I had this statement, would it be any different in processing time or any other reason why this would not be the preferred/alternative way?
#define STATUS 0x000A
UINT16 InterruptStatus;
if (InterruptStatus == STATUS)
{
<do something here....>
}