• Ben Avison's avatar
    armv6: Accelerate ff_fft_calc for general case (nbits != 4) · 87552d54
    Ben Avison authored
    The previous implementation targeted DTS Coherent Acoustics, which only
    requires nbits == 4 (fft16()). This case was (and still is) linked directly
    rather than being indirected through ff_fft_calc_vfp(), but now the full
    range from radix-4 up to radix-65536 is available. This benefits other codecs
    such as AAC and AC3.
    
    The implementaion is based upon the C version, with each routine larger than
    radix-16 calling a hierarchy of smaller FFT functions, then performing a
    post-processing pass. This pass benefits a lot from loop unrolling to
    counter the long pipelines in the VFP. A relaxed calling standard also
    reduces the overhead of the call hierarchy, and avoiding the excessive
    inlining performed by GCC probably helps with I-cache utilisation too.
    
    I benchmarked the result by measuring the number of gperftools samples that
    hit anywhere in the AAC decoder (starting from aac_decode_frame()) or
    specifically in the FFT routines (fft4() to fft512() and pass()) for the
    same sample AAC stream:
    
                  Before          After
                  Mean   StdDev   Mean   StdDev  Confidence  Change
    Audio decode  2245.5 53.1     1599.6 43.8    100.0%      +40.4%
    FFT routines  940.6  22.0     348.1  20.8    100.0%      +170.2%
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    87552d54
Name
Last commit
Last update
..
Makefile Loading commit data...
aac.h Loading commit data...
aacpsdsp_init_arm.c Loading commit data...
aacpsdsp_neon.S Loading commit data...
ac3dsp_arm.S Loading commit data...
ac3dsp_armv6.S Loading commit data...
ac3dsp_init_arm.c Loading commit data...
ac3dsp_neon.S Loading commit data...
apedsp_init_arm.c Loading commit data...
apedsp_neon.S Loading commit data...
asm-offsets.h Loading commit data...
audiodsp_arm.h Loading commit data...
audiodsp_init_arm.c Loading commit data...
audiodsp_init_neon.c Loading commit data...
audiodsp_neon.S Loading commit data...
blockdsp_arm.h Loading commit data...
blockdsp_init_arm.c Loading commit data...
blockdsp_init_neon.c Loading commit data...
blockdsp_neon.S Loading commit data...
cabac.h Loading commit data...
dca.h Loading commit data...
dcadsp_init_arm.c Loading commit data...
dcadsp_neon.S Loading commit data...
dcadsp_vfp.S Loading commit data...
fft_fixed_init_arm.c Loading commit data...
fft_fixed_neon.S Loading commit data...
fft_init_arm.c Loading commit data...
fft_neon.S Loading commit data...
fft_vfp.S Loading commit data...
flacdsp_arm.S Loading commit data...
flacdsp_init_arm.c Loading commit data...
fmtconvert_init_arm.c Loading commit data...
fmtconvert_neon.S Loading commit data...
fmtconvert_vfp.S Loading commit data...
fmtconvert_vfp_armv6.S Loading commit data...
h264chroma_init_arm.c Loading commit data...
h264cmc_neon.S Loading commit data...
h264dsp_armv6.S Loading commit data...
h264dsp_init_arm.c Loading commit data...
h264dsp_neon.S Loading commit data...
h264idct_neon.S Loading commit data...
h264pred_init_arm.c Loading commit data...
h264pred_neon.S Loading commit data...
h264qpel_init_arm.c Loading commit data...
h264qpel_neon.S Loading commit data...
hpeldsp_arm.S Loading commit data...
hpeldsp_arm.h Loading commit data...
hpeldsp_armv6.S Loading commit data...
hpeldsp_init_arm.c Loading commit data...
hpeldsp_init_armv6.c Loading commit data...
hpeldsp_init_neon.c Loading commit data...
hpeldsp_neon.S Loading commit data...
idctdsp_arm.S Loading commit data...
idctdsp_arm.h Loading commit data...
idctdsp_armv6.S Loading commit data...
idctdsp_init_arm.c Loading commit data...
idctdsp_init_armv5te.c Loading commit data...
idctdsp_init_armv6.c Loading commit data...
idctdsp_init_neon.c Loading commit data...
idctdsp_neon.S Loading commit data...
int_neon.S Loading commit data...
jrevdct_arm.S Loading commit data...
mathops.h Loading commit data...
mdct_fixed_neon.S Loading commit data...
mdct_neon.S Loading commit data...
mdct_vfp.S Loading commit data...
me_cmp_armv6.S Loading commit data...
me_cmp_init_arm.c Loading commit data...
mlpdsp_armv5te.S Loading commit data...
mlpdsp_armv6.S Loading commit data...
mlpdsp_init_arm.c Loading commit data...
mpegaudiodsp_fixed_armv6.S Loading commit data...
mpegaudiodsp_init_arm.c Loading commit data...
mpegvideo_arm.c Loading commit data...
mpegvideo_arm.h Loading commit data...
mpegvideo_armv5te.c Loading commit data...
mpegvideo_armv5te_s.S Loading commit data...
mpegvideo_neon.S Loading commit data...
mpegvideoencdsp_armv6.S Loading commit data...
mpegvideoencdsp_init_arm.c Loading commit data...
neon.S Loading commit data...
neontest.c Loading commit data...
pixblockdsp_armv6.S Loading commit data...
pixblockdsp_init_arm.c Loading commit data...
rdft_neon.S Loading commit data...
rv34dsp_init_arm.c Loading commit data...
rv34dsp_neon.S Loading commit data...
rv40dsp_init_arm.c Loading commit data...
rv40dsp_neon.S Loading commit data...
sbrdsp_init_arm.c Loading commit data...
sbrdsp_neon.S Loading commit data...
simple_idct_arm.S Loading commit data...
simple_idct_armv5te.S Loading commit data...
simple_idct_armv6.S Loading commit data...
simple_idct_neon.S Loading commit data...
synth_filter_neon.S Loading commit data...
synth_filter_vfp.S Loading commit data...
vc1dsp.h Loading commit data...
vc1dsp_init_arm.c Loading commit data...
vc1dsp_init_neon.c Loading commit data...
vc1dsp_neon.S Loading commit data...
videodsp_arm.h Loading commit data...
videodsp_armv5te.S Loading commit data...
videodsp_init_arm.c Loading commit data...
videodsp_init_armv5te.c Loading commit data...
vorbisdsp_init_arm.c Loading commit data...
vorbisdsp_neon.S Loading commit data...
vp3dsp_init_arm.c Loading commit data...
vp3dsp_neon.S Loading commit data...
vp56_arith.h Loading commit data...
vp6dsp_init_arm.c Loading commit data...
vp6dsp_neon.S Loading commit data...
vp8.h Loading commit data...
vp8_armv6.S Loading commit data...
vp8dsp.h Loading commit data...
vp8dsp_armv6.S Loading commit data...
vp8dsp_init_arm.c Loading commit data...
vp8dsp_init_armv6.c Loading commit data...
vp8dsp_init_neon.c Loading commit data...
vp8dsp_neon.S Loading commit data...