Commit f9998d19 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/softfloat: Extend the av_cmp_sf() test to cover a wider range of exponents

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ecfb0761)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 7ad4bf48
...@@ -119,6 +119,15 @@ int main(void){ ...@@ -119,6 +119,15 @@ int main(void){
printf("av_cmp_sf failed at %d %d as %X\n", i, j, c); printf("av_cmp_sf failed at %d %d as %X\n", i, j, c);
} }
} }
sf1 = av_int2sf(1, i);
for(j = 0; j < 100; j++) {
int c;
sf2 = av_int2sf(1, j);
c = av_cmp_sf(sf2, sf1);
if (FFDIFFSIGN(i,j) != c && (FFDIFFSIGN(i,j)^c) < 0) {
printf("av_cmp_sf failed2 at %d %d as %X\n", i, j, c);
}
}
} }
......
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