[FFmpeg-cvslog] avutil/softfloat: Add test for av_gt_sf()

Michael Niedermayer git at videolan.org
Sun Nov 8 15:17:55 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Nov  8 15:02:05 2015 +0100| [791ea23e57f134559ba66fd8f1664346abbc9314] | committer: Michael Niedermayer

avutil/softfloat: Add test for av_gt_sf()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=791ea23e57f134559ba66fd8f1664346abbc9314
---

 libavutil/softfloat.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libavutil/softfloat.c b/libavutil/softfloat.c
index 808c5e6..bf74277 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);
+            }
         }
     }
 



More information about the ffmpeg-cvslog mailing list