Patch proposal: use __builtin_expect
Andrew Haley
aph@pasanda.cygnus.co.uk
Sat Apr 22 10:49:00 GMT 2000
> Date: Sat, 22 Apr 2000 08:36:05 -0700
> From: Anthony Green <green@cygnus.com>
>
> These changes tell the compiler that we expect the tests to result in
> 0 most of the time. It will reorder the basic blocks to generate
> straight line code for the common case
Hmm. So __builtin_expect means that we expect the result *not* to be
true; it actually means "expect false". Does that mean that its name
is the opposite of its meaning?
Andrew.
More information about the Java-patches
mailing list