* b has to be normalized and not zero. * @return Will not be more denormalized than a. */
| 87 | * @return Will not be more denormalized than a. |
| 88 | */ |
| 89 | static av_const SoftFloat av_div_sf(SoftFloat a, SoftFloat b){ |
| 90 | a.exp -= b.exp+1; |
| 91 | a.mant = ((int64_t)a.mant<<(ONE_BITS+1)) / b.mant; |
| 92 | return av_normalize1_sf(a); |
| 93 | } |
| 94 | |
| 95 | static inline av_const int av_cmp_sf(SoftFloat a, SoftFloat b){ |
| 96 | int t= a.exp - b.exp; |
no test coverage detected