Commit 118d84b7 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'f2ce6324'

* commit 'f2ce6324':
  dcadec: replace ldexpf with a multiplication by a constant

Conflicts:
	libavcodec/dcadec.c

See: 6da06ef6
See: 9ccb5455
See: 6b88f22eMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 40c9d430 f2ce6324
...@@ -2117,8 +2117,14 @@ static float dca_dmix_code(unsigned code) ...@@ -2117,8 +2117,14 @@ static float dca_dmix_code(unsigned code)
{ {
int sign = (code >> 8) - 1; int sign = (code >> 8) - 1;
code &= 0xff; code &= 0xff;
<<<<<<< HEAD
#define POW2_MINUS15 .000030517578125 #define POW2_MINUS15 .000030517578125
return ((dca_dmixtable[code] ^ sign) - sign) * POW2_MINUS15; return ((dca_dmixtable[code] ^ sign) - sign) * POW2_MINUS15;
||||||| merged common ancestors
return ldexpf((dca_dmixtable[code] ^ sign) - sign, -15);
=======
return ((dca_dmixtable[code] ^ sign) - sign) * (1.0 / (1U << 15));
>>>>>>> f2ce63246f5c934429f9cb857a794e07624d7912
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment