On 8/28/19 3:41 PM, Denis Efremov wrote: > >> >> As a human I am confused. Is !likely(x) equivalent to x or !x? >> >> Julia >> > > As far as I could understand it: > > # define likely(x) __builtin_expect(!!(x), 1) > !likely(x) > !__builtin_expect(!!(x), 1) > !((!!(x)) == 1) > (!!(x)) != 1, since !! could result in 0 or 1 > (!!(x)) == 0 > !(!!(x)) > !!!(x) > !(x) >
Thanks Rasmus for the explanation, this should be: !likely(x) !__builtin_expect(!!(x), 1) !(!!(x)) !!!(x) !(x) Denis _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
