Re: [PATCH] jump_label: unlikely(x) > 0

From: Ingo Molnar
Date: Wed Oct 16 2013 - 02:47:10 EST



* H. Peter Anvin <hpa@xxxxxxxxxxxxxxx> wrote:

> On 10/11/2013 01:57 PM, Andrew Morton wrote:
> >
> > I'm sure this was intended instead ;) The patch doesn't seem to make
> > any difference in code generation with my gcc.
> >
>
> Which is odd, because doesn't unlikely() booleanize?

It's supposed to:

include/linux/compiler.h:#define unlikely_notrace(x) __builtin_expect(!!(x), 0)

Thanks,

Ingo
--
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/