Showing the changes to libavutil/softfloat.h (1 of 1 file). Show all
Unified · Split
| @@ -50,8 +50,7 @@ static const SoftFloat FLOAT_0999999 = { 0x3FFFFBCE, 0}; · 49 unmodified lines | ||
| 50 | 50 | */ |
| 51 | 51 | static inline av_const double av_sf2double(SoftFloat v) { |
| 52 | 52 | v.exp -= ONE_BITS +1; |
| 53 | − if(v.exp > 0) return (double)v.mant * (double)(1 << v.exp); | |
| 54 | − else return (double)v.mant / (double)(1 << (-v.exp)); | |
| 53 | + return ldexp(v.mant, v.exp); | |
| 55 | 54 | } |
| 56 | 55 | |
| 57 | 56 | static av_const SoftFloat av_normalize_sf(SoftFloat a){ |