On 20 December 2011 12:49, Segher Boessenkool wrote:
>
> The point of the example is that you cannot write
>
>          if (__builtin_expect (ptr, 1))
>            error ();
>
> so the "!= NULL" is important here.  But you are right that
> "error ()" is a bit unexpected; care to send a patch that changes
> it to e.g. "do_something ()"?

or even ptr->do_something() since that would depend on the value of ptr

Reply via email to