diff options
author | malc <av1474@comtv.ru> | 2009-09-12 02:39:29 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-09-12 02:50:58 +0400 |
commit | 057fa65c5ddf915d73b69964f32fc854c914efd4 (patch) | |
tree | a8a756cfbf97cfc13d896efa7c49a6167b1bbfeb /audio/audio.c | |
parent | 8b438ba3f567a5d3ebd61a4e9b36971877e87671 (diff) |
audio: remove lsbindex/popcount in favour of host-utils's ctz32
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/audio.c')
-rw-r--r-- | audio/audio.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/audio/audio.c b/audio/audio.c index ea6ae1b1e..aa9ea3ea0 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -112,23 +112,6 @@ struct mixeng_volume nominal_volume = { #endif }; -/* http://www.df.lth.se/~john_e/gems/gem002d.html */ -/* http://www.multi-platforms.com/Tips/PopCount.htm */ -uint32_t popcount (uint32_t u) -{ - u = ((u&0x55555555) + ((u>>1)&0x55555555)); - u = ((u&0x33333333) + ((u>>2)&0x33333333)); - u = ((u&0x0f0f0f0f) + ((u>>4)&0x0f0f0f0f)); - u = ((u&0x00ff00ff) + ((u>>8)&0x00ff00ff)); - u = ( u&0x0000ffff) + (u>>16); - return u; -} - -inline uint32_t lsbindex (uint32_t u) -{ - return popcount ((u&-u)-1); -} - #ifdef AUDIO_IS_FLAWLESS_AND_NO_CHECKS_ARE_REQURIED #error No its not #else |