Re: [PATCH] perf tools: Prevent from BITS_PER_LONG redefinition

From: Peter Zijlstra
Date: Sat Dec 19 2009 - 04:27:16 EST


On Fri, 2009-12-18 at 23:05 +0100, Frederic Weisbecker wrote:
> +#ifndef BITS_PER_LONG
> /* CHECKME: Not sure both always match */
> #define BITS_PER_LONG __WORDSIZE
> +#endif

Why use __WORDSIZE if you're not sure?

(8*sizeof(long)) is simple and unambiguous.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/