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@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@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




--
----------------------------------------------
Leônidas S. Barbosa (Kirotawa)