---
 libavcodec/dct-test.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index f33a7bd..eecde94 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -141,18 +141,6 @@ static const struct algo idct_tab[] = {
 #define NB_ITS 20000
 #define NB_ITS_SPEED 50000
 
-static short idct_mmx_perm[64];
-
-static void idct_mmx_init(void)
-{
-    int i;
-
-    /* the mmx/mmxext idct uses a reordered input, so we patch scan tables */
-    for (i = 0; i < 64; i++) {
-        idct_mmx_perm[i] = (i & 0x38) | ((i & 6) >> 1) | ((i & 1) << 2);
-    }
-}
-
 DECLARE_ALIGNED(16, static int16_t, block)[64];
 DECLARE_ALIGNED(8,  static int16_t, block1)[64];
 
@@ -190,7 +178,7 @@ static void permute(int16_t dst[64], const int16_t src[64], 
int perm)
 
     if (perm == MMX_PERM) {
         for (i = 0; i < 64; i++)
-            dst[idct_mmx_perm[i]] = src[i];
+            dst[(i & 0x38) | ((i & 6) >> 1) | ((i & 1) << 2)] = src[i];
     } else if (perm == MMX_SIMPLE_PERM) {
         for (i = 0; i < 64; i++)
             dst[simple_mmx_permutation[i]] = src[i];
@@ -469,7 +457,6 @@ int main(int argc, char **argv)
     int err = 0;
 
     ff_ref_dct_init();
-    idct_mmx_init();
 
     for (;;) {
         c = getopt(argc, argv, "ih4t");
-- 
1.8.3.2

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to