[alsa-devel] [PATCH] snd_usb_caiaq: use likely()/unlikely()

Daniel Mack daniel at caiaq.org
Sat Apr 12 23:01:19 CEST 2008


On Sat, Apr 12, 2008 at 11:21:27PM +0300, Adrian Bunk wrote:
> Does it bring any measurable advantage?
> Otherwise it's usually better to let the compiler decide how to optimize 
> the code.

I didn't really measure, but how should the compiler know how likely a
certain condition in hardware state is? I thought, in such cases it's
generally a good idea to give the compiler some hints.


More information about the Alsa-devel mailing list