Commit af8d63e7 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/softfloat: Fix alternative implementation of av_normalize1_sf()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6690ca22
...@@ -70,7 +70,7 @@ static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){ ...@@ -70,7 +70,7 @@ static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){
int t= a.mant + 0x40000000 < 0; int t= a.mant + 0x40000000 < 0;
return (SoftFloat){ a.mant>>t, a.exp+t}; return (SoftFloat){ a.mant>>t, a.exp+t};
#else #else
int t= (a.mant + 0x40000000U)>>31; int t= (a.mant + 0x3FFFFFFFU)>>31;
return (SoftFloat){a.mant>>t, a.exp+t}; return (SoftFloat){a.mant>>t, a.exp+t};
#endif #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