On 11/24/06, Manoj Awasthi <lkml.manoj@xxxxxxxxx> wrote:
Hi, Can someone please tell me the cases in which we can use likely() and unlikely() macros ?
In cases when you are really really sure, that the value of a comparison is going to be/is not going to be, equal to the value that you are comparing with.
I think this optimization is at the cost of the correctness of code handling.
Why? AFAIK, it only changes the order of the instructions to avoid pipeline emptying. CMIIW
thanks -Manoj -- What is important? What you want to be true, or what is true? --------------------------------------------------------------------------- http://awmanoj.blogspot.com
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/