This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch proposal: use __builtin_expect


> 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]