aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/softfloat.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-08 15:02:05 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-12 00:00:57 +0100
commit0f9c61797929d5b896abc40b9be78cdccb5a7fac (patch)
treecbb0347d2c12b47ab11d42f7186f4cf2af4e39dd /libavutil/softfloat.c
parentf9998d1994bdfffe5a5121ee6844db361a6da4e0 (diff)
downloadffmpeg-0f9c61797929d5b896abc40b9be78cdccb5a7fac.tar.gz
avutil/softfloat: Add test for av_gt_sf()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 791ea23e57f134559ba66fd8f1664346abbc9314) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/softfloat.c')
-rw-r--r--libavutil/softfloat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/softfloat.c b/libavutil/softfloat.c
index 808c5e63d5..bf742774b9 100644
--- a/libavutil/softfloat.c
+++ b/libavutil/softfloat.c
@@ -118,6 +118,10 @@ int main(void){
if (FFDIFFSIGN(i,j) != c && (FFDIFFSIGN(i,j)^c)<0) {
printf("av_cmp_sf failed at %d %d as %X\n", i, j, c);
}
+ c = av_gt_sf(sf1, sf2);
+ if ((i>j) != c) {
+ printf("av_gt_sf failed at %d %d as %X\n", i, j, c);
+ }
}
sf1 = av_int2sf(1, i);
for(j = 0; j < 100; j++) {
@@ -127,6 +131,10 @@ int main(void){
if (FFDIFFSIGN(i,j) != c && (FFDIFFSIGN(i,j)^c) < 0) {
printf("av_cmp_sf failed2 at %d %d as %X\n", i, j, c);
}
+ c = av_gt_sf(sf1, sf2);
+ if ((i<j) != c) {
+ printf("av_gt_sf failed2 at %d %d as %X\n", i, j, c);
+ }
}
}