Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-08 16:45:19 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-12 02:00:57 +0300
commitf9998d1994bdfffe5a5121ee6844db361a6da4e0 (patch)
tree473c7a7cd21ec18fd03faf8b3de2165b25a3454a
parent7ad4bf48995957c8fa744d389d28e49116d7e133 (diff)
avutil/softfloat: Extend the av_cmp_sf() test to cover a wider range of exponents
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit ecfb076141d0243212143f0d7c9d4e47b56bec15) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavutil/softfloat.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavutil/softfloat.c b/libavutil/softfloat.c
index e525c97f7c..808c5e63d5 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);
+ }
+ }
}