diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-07-15 20:33:59 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-11-18 21:34:05 +0400 |
commit | 87af05c575791406090272b6a37b50d51e85490c (patch) | |
tree | d654993de187ea4a7c04156775d8f9097b3100b6 /libavutil/x86/x86util.asm | |
parent | 1c5805521c3e406886341d752ebf38f8d41e1d13 (diff) |
x86: SPLATD: port to cpuflags
Diffstat (limited to 'libavutil/x86/x86util.asm')
-rw-r--r-- | libavutil/x86/x86util.asm | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm index 40d87639fe..d3c0d86056 100644 --- a/libavutil/x86/x86util.asm +++ b/libavutil/x86/x86util.asm @@ -574,24 +574,14 @@ %endif %endmacro -%macro SPLATD 2-3 0 -%if mmsize == 16 - pshufd %1, %2, (%3)*0x55 -%else - pshufw %1, %2, (%3)*0x11 + ((%3)+1)*0x44 -%endif -%endmacro - -%macro SPLATD_MMX 1 +%macro SPLATD 1 +%if mmsize == 8 punpckldq %1, %1 -%endmacro - -%macro SPLATD_SSE 1 - shufps %1, %1, 0 -%endmacro - -%macro SPLATD_SSE2 1 +%elif cpuflag(sse2) pshufd %1, %1, 0 +%elif cpuflag(sse) + shufps %1, %1, 0 +%endif %endmacro %macro CLIPW 3 ;(dst, min, max) |