On Jan 9, 2008 10:03 AM, Michael Schnell <[EMAIL PROTECTED]> wrote:
> AFAIK, __builtin_expect notation is more complicated:
>
>     if (__builtin_expect(!!(evp->sigev_notify == SIGEV_THREAD), 1))
> (I don't understand the dirty details).

That's to turn the result into either 0 or 1, not needed here.


> That is why you should do
>
>     if (likely(evp->sigev_notify == SIGEV_THREAD))

likely should be defined on some header file. I don't know if uClibc defines it.
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to