N
Nitin Tripathi
When should one go for likely and unlikely in c?
Thanks,
Nitin Tripathi.
Thanks,
Nitin Tripathi.
When should one go for likely and unlikely in c?
You mean the likely() and unlikely() macros which e.g. the Linux
kernel sources have. They expand to gcc-specific things which are
supposed to help generate better code, by telling the compiler which
case it should optimize for:
David Brown said:Well, in this group we mostly likely C, and many unlikely C++.
Try asking a proper question, and you are more likely to get a proper
answer. If your English is not good, that's okay - but at least write
enough so that we can figure out what you are trying to say.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.