diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-09-24 15:00:53 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-12-05 11:23:36 -0500 |
commit | ac7eb4cb20ea84cfc911794722695d501b354ee9 (patch) | |
tree | b9736adb1c0e993f0051b11cc249b67404e518f3 /libavutil/x86/x86util.asm | |
parent | da025d115a1ada58081cd869e85b81a1c183ae9e (diff) | |
download | ffmpeg-ac7eb4cb20ea84cfc911794722695d501b354ee9.tar.gz |
float_dsp: add vector_dmul_scalar() to multiply a vector of doubles
Include x86-optimized versions for SSE2 and AVX.
Diffstat (limited to 'libavutil/x86/x86util.asm')
-rw-r--r-- | libavutil/x86/x86util.asm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm index d3c0d86056..16ee6cfe94 100644 --- a/libavutil/x86/x86util.asm +++ b/libavutil/x86/x86util.asm @@ -631,6 +631,17 @@ %endif %endmacro +%macro VBROADCASTSD 2 ; dst xmm/ymm, src m64 +%if cpuflag(avx) && mmsize == 32 + vbroadcastsd %1, %2 +%elif cpuflag(sse3) + movddup %1, %2 +%else ; sse2 + movsd %1, %2 + movlhps %1, %1 +%endif +%endmacro + %macro SHUFFLE_MASK_W 8 %rep 8 %if %1>=0x80 |