Commit ebaf571a authored by Henrik Gramner's avatar Henrik Gramner Committed by Anton Khirnov

x86: dct: Disable dct32_float_sse on x86-64

There is an SSE2 implementation so the SSE version is never used. The "SSE"
version also happens to contain SSE2 instructions on x86-64.
Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 979cb551
...@@ -482,7 +482,10 @@ cglobal dct32_float, 2, 3, 16, out, in, tmp ...@@ -482,7 +482,10 @@ cglobal dct32_float, 2, 3, 16, out, in, tmp
%endif %endif
%endmacro %endmacro
%if ARCH_X86_32
INIT_XMM sse INIT_XMM sse
DCT32_FUNC DCT32_FUNC
%endif
INIT_XMM sse2 INIT_XMM sse2
DCT32_FUNC DCT32_FUNC
...@@ -30,8 +30,10 @@ av_cold void ff_dct_init_x86(DCTContext *s) ...@@ -30,8 +30,10 @@ av_cold void ff_dct_init_x86(DCTContext *s)
{ {
int cpu_flags = av_get_cpu_flags(); int cpu_flags = av_get_cpu_flags();
#if ARCH_X86_32
if (EXTERNAL_SSE(cpu_flags)) if (EXTERNAL_SSE(cpu_flags))
s->dct32 = ff_dct32_float_sse; s->dct32 = ff_dct32_float_sse;
#endif
if (EXTERNAL_SSE2(cpu_flags)) if (EXTERNAL_SSE2(cpu_flags))
s->dct32 = ff_dct32_float_sse2; s->dct32 = ff_dct32_float_sse2;
if (EXTERNAL_AVX_FAST(cpu_flags)) if (EXTERNAL_AVX_FAST(cpu_flags))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment