Thread (2 messages) 2 messages, 2 authors, 2013-10-21

Branch annotations

From: leo kirotawa <hidden>
Date: 2013-10-21 19:27:12

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 [off-list ref] 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 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help