Commit 6690ca22 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/softfloat: Fix alternative implementation of av_normalize_sf()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5bf84a58
......@@ -44,7 +44,7 @@ static av_const SoftFloat av_normalize_sf(SoftFloat a){
a.exp -= 1;
}
#else
int s=ONE_BITS + 1 - av_log2(a.mant ^ (a.mant<<1));
int s=ONE_BITS - av_log2(FFABS(a.mant));
a.exp -= s;
a.mant <<= s;
#endif
......
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