Re: like /unlikely macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux