ALSA: pcm: Replace custom ld2 function with __fls
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 29 Dec 2014 18:41:46 +0000 (19:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Dec 2014 15:41:56 +0000 (16:41 +0100)
commit757b037650c9ecca79a46ab744820b1b3c1bb49d
treeddd7ee816fb028d527cdbb7a4af82786e58b5019
parentf6dbe1bee59741cd7699e7da3019e67c77d9bd6f
ALSA: pcm: Replace custom ld2 function with __fls

__fls has the same semantics as ld2, so there is no need to re-implement it.
Furthermore a lot of architectures have custom implementations of __fls that
are able to use special hardware instructions to compute the result. This
makes the code slightly shorter and faster.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm_params.h