Re: [PATCH 1/3] Fix Unlikely(x) == y

From: David Howells
Date: Mon Feb 18 2008 - 09:28:19 EST


Geert Uytterhoeven <Geert.Uytterhoeven@xxxxxxxxxxx> wrote:

> Hence shouldn't we ask the gcc people what's the purpose of
> __builtin_expect(), if it doesn't live up to its promise?

__builtin_expect() is useful on FRV where you _have_ to give each branch and
conditional branch instruction a measure of probability whether the branch
will be taken.

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