• pin xue's avatar
    replace movw instruction in ac3dsp_armv6.S · 05c062e9
    pin xue authored
    AS      libavcodec/arm/ac3dsp_armv6.o
    ffmpeg-src/libavcodec/arm/ac3dsp_armv6.S: Assembler messages:
    ffmpeg-src/libavcodec/arm/ac3dsp_armv6.S:40: Error: selected processor
    does not support `movw r8,#0x1fe0'
    make[1]: *** [libavcodec/arm/ac3dsp_armv6.o] Error 1
    
    MOVW is ARMv7 way to load constant:
       * movw, or move wide, will move a 16-bit constant into a register,
    implicitly zeroing the top 16 bits of the target register.
       * movt, or move top, will move a 16-bit constant into the top half
    of a given register without altering the bottom 16 bits
    To load 32 bit constant, movw  lower16; movt upper16; is better than
    ldr if available, because:
    While this approach takes two instructions, it does not require any
    extra space to store the constant so both the movw/movt method and the
    ldr method will end up using the same amount of memory. Memory
    bandwidth is precious in and the movw/movt approach avoids an extra
    read on the data side, not to mention the read could have missed the
    cache.
    
    But here it is armv6 optimization, so that we have to use ldr.
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    05c062e9
Name
Last commit
Last update
..
Makefile Loading commit data...
aac.h 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...
asm-offsets.h Loading commit data...
asm.S Loading commit data...
dcadsp_init_arm.c Loading commit data...
dcadsp_neon.S Loading commit data...
dsputil_arm.S Loading commit data...
dsputil_arm.h Loading commit data...
dsputil_armv6.S Loading commit data...
dsputil_init_arm.c Loading commit data...
dsputil_init_armv5te.c Loading commit data...
dsputil_init_armv6.c Loading commit data...
dsputil_init_neon.c Loading commit data...
dsputil_init_vfp.c Loading commit data...
dsputil_iwmmxt.c Loading commit data...
dsputil_iwmmxt_rnd_template.c Loading commit data...
dsputil_neon.S Loading commit data...
dsputil_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...
fmtconvert_init_arm.c Loading commit data...
fmtconvert_neon.S Loading commit data...
fmtconvert_vfp.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...
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...
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_iwmmxt.c Loading commit data...
mpegvideo_neon.S Loading commit data...
rdft_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...
vp3dsp_neon.S Loading commit data...
vp56_arith.h Loading commit data...
vp56dsp_init_arm.c Loading commit data...
vp56dsp_neon.S Loading commit data...
vp8.h Loading commit data...
vp8_armv6.S Loading commit data...
vp8dsp_init_arm.c Loading commit data...
vp8dsp_neon.S Loading commit data...