diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2014-06-28 19:05:52 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-28 19:06:47 +0400 |
commit | faa1471ffcc1bbffe3a9d3d1f4b5fe3adbef647a (patch) | |
tree | ea7e57f6e4252876e391f409b1cb9f7efad32e1d /libswresample/resample_template.c | |
parent | a348f4befe23ada291a1982de23ed7d828bdaf0c (diff) |
swr: rewrite resample_common/linear_float_sse/avx in yasm.
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).
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/resample_template.c')
-rw-r--r-- | libswresample/resample_template.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/libswresample/resample_template.c b/libswresample/resample_template.c index 0fc9770b28..db208e3414 100644 --- a/libswresample/resample_template.c +++ b/libswresample/resample_template.c @@ -43,9 +43,7 @@ # define RENAME(N) N ## _double_sse2 # endif -#elif defined(TEMPLATE_RESAMPLE_FLT) \ - || defined(TEMPLATE_RESAMPLE_FLT_SSE) \ - || defined(TEMPLATE_RESAMPLE_FLT_AVX) +#elif defined(TEMPLATE_RESAMPLE_FLT) # define FILTER_SHIFT 0 # define DELEM float @@ -56,14 +54,6 @@ # if defined(TEMPLATE_RESAMPLE_FLT) # define RENAME(N) N ## _float -# elif defined(TEMPLATE_RESAMPLE_FLT_SSE) -# define COMMON_CORE COMMON_CORE_FLT_SSE -# define LINEAR_CORE LINEAR_CORE_FLT_SSE -# define RENAME(N) N ## _float_sse -# elif defined(TEMPLATE_RESAMPLE_FLT_AVX) -# define COMMON_CORE COMMON_CORE_FLT_AVX -# define LINEAR_CORE LINEAR_CORE_FLT_AVX -# define RENAME(N) N ## _float_avx # endif #elif defined(TEMPLATE_RESAMPLE_S32) |