ffmpeg | branch: release/2.8 | Michael Niedermayer <mich...@niedermayer.cc> | Sun Nov 8 14:45:19 2015 +0100| [f9998d1994bdfffe5a5121ee6844db361a6da4e0] | committer: Michael Niedermayer
avutil/softfloat: Extend the av_cmp_sf() test to cover a wider range of exponents Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> (cherry picked from commit ecfb076141d0243212143f0d7c9d4e47b56bec15) Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f9998d1994bdfffe5a5121ee6844db361a6da4e0 --- libavutil/softfloat.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libavutil/softfloat.c b/libavutil/softfloat.c index e525c97..808c5e6 100644 --- a/libavutil/softfloat.c +++ b/libavutil/softfloat.c @@ -119,6 +119,15 @@ int main(void){ 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); + } + } } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog