raja wrote:
In kernel code the macros likely() and unlikely() are frequently
used.Would you please tell me wht those macros will actually perform?.
thanking you,
They will hint the compiler for the likely paths that the execution will take,
so the compiler will be able to reorder the basic blocks so as to minimize the
number of (conditional) branches taken.
~velco
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/