ffmpeg/libswresample
Ganesh Ajjanagadde 8507b98c10 avfilter,swresample,swscale: use fabs, fabsf instead of FFABS
It is well known that fabs and fabsf are at least as fast and sometimes
faster than the FFABS macro, at least on the gcc+glibc combination.
For instance, see the reference:
http://patchwork.sourceware.org/patch/6735/.
This was a patch to glibc in order to remove their usages of a macro.

The reason essentially boils down to fabs using the __builtin_fabs of
the compiler, while FFABS needs to infer to not use a branch and to
simply change the sign bit. Usually the inference works, but sometimes
it does not. This may be easily checked by looking at the asm.

This also has the added benefit of reducing macro usage, which has
problems with side-effects.

Note that avcodec is not handled here, as it is huge and
most things there are integer arithmetic anyway.

Tested with FATE.

Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-22 16:13:26 -04:00
..
aarch64
arm
x86 x86/audio_convert: fix clobbering of xmm registers 2015-10-01 22:40:50 -03:00
audioconvert.c
audioconvert.h
dither_template.c swresample/dither_template: Add missing license header 2015-09-27 13:09:10 +02:00
dither.c swresample/dither: use integer arithmetic 2015-08-23 23:19:31 +02:00
libswresample.v
log2_tab.c
Makefile
noise_shaping_data.c
options.c doc/resampler, swresample/options: use proper capitalization 2015-10-10 20:49:54 +02:00
rematrix_template.c
rematrix.c swresample: slightly nicer debug output for auto matrix 2015-10-15 20:16:13 +02:00
resample_dsp.c
resample_template.c swr/resample: use av_clip functions 2015-04-05 22:46:40 +02:00
resample.c swresample/resample: manually unroll the main loop in bessel() 2015-10-07 18:00:58 +02:00
resample.h
soxr_resample.c swresample: soxr implementation for swr_get_out_samples() 2015-06-21 23:38:44 +02:00
swresample_frame.c
swresample_internal.h swresample/swresample_internal: add av_warn_unused_result 2015-10-15 22:27:23 -04:00
swresample-test.c avfilter,swresample,swscale: use fabs, fabsf instead of FFABS 2015-10-22 16:13:26 -04:00
swresample.c swresample/swresample: Fix integer overflow in seed calculation 2015-09-03 09:32:43 +02:00
swresample.h doc/resampler, swresample/options: use proper capitalization 2015-10-10 20:49:54 +02:00
swresampleres.rc
version.h Merge commit 'e88103a7f92cf27a2868b50acc8a9912f6088249' 2015-09-05 21:35:46 +02:00