提交 f2ce6324 编写于 作者: N Niels Möller 提交者: Anton Khirnov

dcadec: replace ldexpf with a multiplication by a constant

Signed-off-by: NAnton Khirnov <anton@khirnov.net>
上级 44671b57
......@@ -1699,7 +1699,7 @@ static float dca_dmix_code(unsigned code)
{
int sign = (code >> 8) - 1;
code &= 0xff;
return ldexpf((dca_dmixtable[code] ^ sign) - sign, -15);
return ((dca_dmixtable[code] ^ sign) - sign) * (1.0 / (1U << 15));
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册