]> git.sesse.net Git - ffmpeg/commitdiff
mathops: Drop disabled alternative mid_pred() implementation
authorDiego Biurrun <diego@biurrun.de>
Mon, 1 Aug 2016 18:15:07 +0000 (20:15 +0200)
committerDiego Biurrun <diego@biurrun.de>
Wed, 17 Aug 2016 10:16:42 +0000 (12:16 +0200)
libavcodec/mathops.h

index bd85dd79bec56f2cc2dc10cf413522c8990ec04a..0afc82a0f5f3d0684cb47e60223c21923af8fd4a 100644 (file)
@@ -99,15 +99,6 @@ static av_always_inline unsigned UMULH(unsigned a, unsigned b){
 #define mid_pred mid_pred
 static inline av_const int mid_pred(int a, int b, int c)
 {
-#if 0
-    int t= (a-b)&((a-b)>>31);
-    a-=t;
-    b+=t;
-    b-= (b-c)&((b-c)>>31);
-    b+= (a-b)&((a-b)>>31);
-
-    return b;
-#else
     if(a>b){
         if(c>b){
             if(c>a) b=a;
@@ -120,7 +111,6 @@ static inline av_const int mid_pred(int a, int b, int c)
         }
     }
     return b;
-#endif
 }
 #endif