x86: Enable high bit-depth x264_coeff_last64_avx2_lzcnt
authorHenrik Gramner <henrik@gramner.com>
Sun, 11 Oct 2015 20:32:03 +0000 (22:32 +0200)
committerHenrik Gramner <henrik@gramner.com>
Sat, 16 Jan 2016 23:30:12 +0000 (00:30 +0100)
The function existed but was never enabled.

common/quant.c

index be000ec..fa8de02 100644 (file)
@@ -553,6 +553,8 @@ void x264_quant_init( x264_t *h, int cpu, x264_quant_function_t *pf )
         pf->dequant_8x8 = x264_dequant_8x8_avx2;
         pf->dequant_4x4_dc = x264_dequant_4x4dc_avx2;
         pf->denoise_dct = x264_denoise_dct_avx2;
+        if( cpu&X264_CPU_LZCNT )
+            pf->coeff_last[DCT_LUMA_8x8] = x264_coeff_last64_avx2_lzcnt;
     }
 #endif // HAVE_MMX
 #else // !HIGH_BIT_DEPTH