diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-03 15:52:36 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-03 15:58:51 +0200 |
commit | c1fe2db3769d1a9e2e8d3ea718e4306648bafede (patch) | |
tree | 4bbfa99a43e20c08c174be9955a41b8298209155 /libswresample/x86/audio_convert.asm | |
parent | 29ed1900cc07d9704c3e2ebdb721baf73f17f328 (diff) | |
download | ffmpeg-c1fe2db3769d1a9e2e8d3ea718e4306648bafede.tar.gz |
swr: add ff_int32_to_float_a_avx
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/x86/audio_convert.asm')
-rw-r--r-- | libswresample/x86/audio_convert.asm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libswresample/x86/audio_convert.asm b/libswresample/x86/audio_convert.asm index f220e2d135..4973b5ce39 100644 --- a/libswresample/x86/audio_convert.asm +++ b/libswresample/x86/audio_convert.asm @@ -22,7 +22,7 @@ %include "libavutil/x86/x86util.asm" SECTION_RODATA - +align 32 flt2pm31: times 8 dd 4.6566129e-10 flt2p31 : times 8 dd 2147483648.0 flt2p15 : times 8 dd 32768.0 @@ -87,8 +87,8 @@ int32_to_float_u_int %+ SUFFIX cvtdq2ps m0, m0 cvtdq2ps m1, m1 %endif - mulps m0, m2 - mulps m1, m2 + mulps m0, m0, m2 + mulps m1, m1, m2 mov%1 [ dstq+lenq], m0 mov%1 [mmsize + dstq+lenq], m1 add lenq, 2*mmsize @@ -243,3 +243,9 @@ FLOAT_TO_INT32 u FLOAT_TO_INT32 a FLOAT_TO_INT16 u FLOAT_TO_INT16 a + +%if HAVE_AVX +INIT_YMM avx +INT32_TO_FLOAT u +INT32_TO_FLOAT a +%endif |