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 <[email protected]> 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
> [email protected]
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
----------------------------------------------
LeƓnidas S. Barbosa (Kirotawa)
_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to