Thread (4 messages) 4 messages, 4 authors, 2012-12-06

double exclamation mark meaning ?

From: devendra.aaru <hidden>
Date: 2012-12-06 13:54:45

On Thu, Dec 6, 2012 at 4:50 AM, Shraddha Kamat [off-list ref] wrote:
Hi,

# define likely(x)  __builtin_expect(!!(x), 1)
# define unlikely(x)    __builtin_expect(!!(x), 0)

I see these !! in the above expressions. Please explain me the
meaning of those double exclamations. What is their significance ?
this is c question, right, google is your friend
-- Shraddha



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help