[FFmpeg-devel] [PATCH] swr: rewrite resample_common/linear_float_sse/avx in yasm.

Michael Niedermayer michaelni at gmx.at
Sat Jun 28 16:27:31 CEST 2014


On Sat, Jun 28, 2014 at 10:13:45AM -0400, Ronald S. Bultje wrote:
> Linear interpolation goes from 63 (llvm) or 58 (gcc) to 48 (yasm)
> cycles/sample on 64bit, or from 66 (llvm/gcc) to 52 (yasm) cycles/
> sample on 32bit. Bon-linear goes from 43 (llvm) or 38 (gcc) to
> 32 (yasm) cycles/sample on 64bit, or from 46 (llvm) or 44 (gcc) to
> 38 (yasm) cycles/sample on 32bit (all testing on OSX 10.9.2, llvm
> 5.1 and gcc 4.8/9).
> ---
>  configure                            |   3 +-
>  libswresample/resample_template.c    |  12 +-
>  libswresample/x86/Makefile           |   1 +
>  libswresample/x86/resample.asm       | 462 +++++++++++++++++++++++++++++++++++
>  libswresample/x86/resample_mmx.h     | 118 ---------
>  libswresample/x86/resample_x86_dsp.c |  34 ++-
>  6 files changed, 481 insertions(+), 149 deletions(-)
>  create mode 100644 libswresample/x86/resample.asm

seems to still fail:
make -j12  -k
YASM    libswresample/x86/resample.o
libswresample/x86/resample.asm:47: warning: section flags ignored on section redeclaration
libswresample/x86/resample.asm:461: error: invalid combination of opcode and operands
libswresample/x86/resample.asm:461: error: invalid size for operand 1
libswresample/x86/resample.asm:461: error: invalid combination of opcode and operands
libswresample/x86/resample.asm:461: error: invalid combination of opcode and operands
libswresample/x86/resample.asm:461: error: invalid combination of opcode and operands
libswresample/x86/resample.asm:461: error: invalid size for operand 1
libswresample/x86/resample.asm:461: error: invalid combination of opcode and operands
libswresample/x86/resample.asm:461: error: invalid combination of opcode and operands
make: *** [libswresample/x86/resample.o] Error 1

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140628/f287648b/attachment.asc>


More information about the ffmpeg-devel mailing list