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

David Howells dhowells at redhat.com
Tue Feb 19 01:27:10 EST 2008


Geert Uytterhoeven <Geert.Uytterhoeven at sonycom.com> 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



More information about the Linuxppc-dev mailing list