question oh macros and gcc's intelligence

From: Oliver Neukum
Date: Thu Mar 17 2011 - 04:55:05 EST


if I write:

if (le16_to_cpu(p) == CONST) a();

is gcc smart enough to convert CONST to le16 and do
a simple comparison?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at