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 /hw | |
parent | 8b438ba3f567a5d3ebd61a4e9b36971877e87671 (diff) |
audio: remove lsbindex/popcount in favour of host-utils's ctz32
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/sb16.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -27,6 +27,7 @@ #include "isa.h" #include "qdev.h" #include "qemu-timer.h" +#include "host-utils.h" #define dolog(...) AUD_log ("sb16", __VA_ARGS__) @@ -1092,8 +1093,8 @@ static IO_WRITE_PROTO (mixer_write_datab) { int dma, hdma; - dma = lsbindex (val & 0xf); - hdma = lsbindex (val & 0xf0); + dma = ctz32 (val & 0xf); + hdma = ctz32 (val & 0xf0); if (dma != s->dma || hdma != s->hdma) { dolog ( "attempt to change DMA " |