diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-07-27 14:26:09 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-01-15 17:29:43 +0100 |
commit | dae1d507af94261bafd3b11549884e5d1eca590e (patch) | |
tree | 8ddd73e3a9a8ab999c68b5d47b327b19e1d51ca8 /libavutil/x86/x86util.asm | |
parent | 23098bbd509346708b998094daf1dd98339fbc4b (diff) | |
download | ffmpeg-dae1d507af94261bafd3b11549884e5d1eca590e.tar.gz |
x86: Add PAVGB macro to abstract pavgb/pavgusb instruction via cpuflags
Diffstat (limited to 'libavutil/x86/x86util.asm')
-rw-r--r-- | libavutil/x86/x86util.asm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm index 2f818fe61e..551c40a4b5 100644 --- a/libavutil/x86/x86util.asm +++ b/libavutil/x86/x86util.asm @@ -301,6 +301,14 @@ %endif %endmacro +%macro PAVGB 2 +%if cpuflag(mmxext) + pavgb %1, %2 +%elif cpuflag(3dnow) + pavgusb %1, %2 +%endif +%endmacro + %macro PSHUFLW 1+ %if mmsize == 8 pshufw %1 |