pushparaj vitekar wrote:
hi can any one explain the likely/unlikely macros what is their purpose ,where they should be used?
from a posting on this list, 1/5/06 Have a look at this thread of the mailing-list: http://mail.nl.linux.org/kernelnewbies/2005-08/msg00499.html. There have been numerous explanations, and I gave an example of the effect of unlikely() and likely() on the generated assembly code, see http://mail.nl.linux.org/kernelnewbies/2005-08/msg00511.html. IOW, use it in some simple code, then objdump it. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/