avutil/softfloat: Fix alternative implementation of av_normalize1_sf()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/150/head
Michael Niedermayer 10 years ago
parent 6690ca22b3
commit af8d63e756
  1. 2
      libavutil/softfloat.h

@ -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
} }

Loading…
Cancel
Save