Patch: More __builtin_expect fun

Bryce McKinlay bryce@albatross.co.nz
Wed May 3 22:07:00 GMT 2000


Andrew Haley wrote:

> Great.  One small nit: as this is C++ code, shouldn't this
>
>   if (__builtin_expect (! obj || isPrimitive (), 0))
>     return false;
>
> read better as:
>
>   if (__builtin_expect (! obj || isPrimitive (), false))
>     return false;

Yeah. I used "0" to maintain consistency with the __builtin_expect calls that
Anthony already added. If I change it in my patch, it would make sense to go
back and change all the __builtin_expect calls to use "false". ok?

regards

  [ bryce ]




More information about the Java-patches mailing list