diff options
author | Jason Garrett-Glaser <jason@x264.com> | 2012-07-20 18:33:06 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-07-22 16:56:58 -0400 |
commit | 85a3c19ed127e8a333bcc0700a5465faed1f7753 (patch) | |
tree | d01bef54a957dfb082d15252ed00757d8943c12c /libavutil | |
parent | b2704a65d513f63d12e705e941abfbc62676c8fa (diff) | |
download | ffmpeg-85a3c19ed127e8a333bcc0700a5465faed1f7753.tar.gz |
dsputil: x86: add SHUFFLE_MASK_W macro
Simplifies pshufb masks that operate on words.
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/x86/x86util.asm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm index 941ec76084..8450acd87c 100644 --- a/libavutil/x86/x86util.asm +++ b/libavutil/x86/x86util.asm @@ -625,3 +625,15 @@ shufps %1, %1, 0 %endif %endmacro + +%macro SHUFFLE_MASK_W 8 + %rep 8 + %if %1>=0x80 + db %1, %1 + %else + db %1*2 + db %1*2+1 + %endif + %rotate 1 + %endrep +%endmacro |