Branch annotations
leo kirotawa
kirotawa at gmail.com
Mon Oct 21 15:27:12 EDT 2013
And you can find more here:
http://stackoverflow.com/questions/248693/double-negation-in-c-code
On Mon, Oct 21, 2013 at 5:20 PM, Nav Kamal <navkamal90 at gmail.com> wrote:
> I cam across a line which goes like this :
>
> #define likely(condition) (__builtin__ expect (!!(condition),1))
>
> Please somebody explain the double negation used in this macro.
>
> Regards
> Navkamal Rakra
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
--
----------------------------------------------
Leônidas S. Barbosa (Kirotawa)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131021/82d8979a/attachment.html
More information about the Kernelnewbies
mailing list