]> granicus.if.org Git - libx264/commitdiff
checkasm: Fix incorrect memcmp size for ARM architecture
authorAnton Mitrofanov <BugMaster@narod.ru>
Wed, 20 May 2015 20:10:20 +0000 (23:10 +0300)
committerAnton Mitrofanov <BugMaster@narod.ru>
Thu, 16 Jul 2015 21:41:24 +0000 (00:41 +0300)
tools/checkasm.c

index c2e06dbd41f1f5acfdc1c52855f7f79d6ba07f91..0ef7d1d1c50a3e8aeb403b13cba2bd77baeb687d 100644 (file)
@@ -641,7 +641,7 @@ static int check_pixel( int cpu_ref, int cpu_new )
             } \
             predict_8x8[res_c>>16]( fdec1, edge ); \
             int res_a = call_a( pixel_asm.name, fenc, fdec2, edge, bitcosts+8-pred_mode, satds_a ); \
-            if( res_c != res_a || memcmp(satds_c, satds_a, sizeof(satds_c)) ) \
+            if( res_c != res_a || memcmp(satds_c, satds_a, 16 * sizeof(*satds_c)) ) \
             { \
                 ok = 0; \
                 fprintf( stderr, #name": %d,%d != %d,%d [FAILED]\n", res_c>>16, res_c&0xffff, res_a>>16, res_a&0xffff ); \