avutil/softfloat: Fix alternative implementation of av_normalize1_sf()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 5 Jun 2015 15:39:42 +0000 (17:39 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 5 Jun 2015 15:40:16 +0000 (17:40 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/softfloat.h

index bf511b5..392b6d8 100644 (file)
@@ -70,7 +70,7 @@ static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){
     int t= a.mant + 0x40000000 < 0;
     return (SoftFloat){ a.mant>>t, a.exp+t};
 #else
-    int t= (a.mant + 0x40000000U)>>31;
+    int t= (a.mant + 0x3FFFFFFFU)>>31;
     return (SoftFloat){a.mant>>t, a.exp+t};
 #endif
 }