This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Re: Patch proposal: use __builtin_expect
- To: green at cygnus dot com
- Subject: Re: Patch proposal: use __builtin_expect
- From: Andrew Haley <aph at pasanda dot cygnus dot co dot uk>
- Date: 22 Apr 2000 17:49:46 -0000
- CC: java-patches at sourceware dot cygnus dot com
> 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.