comparison armv4l/dsputil_arm_s.S @ 6528:28d0e7dac45d libavcodec

pld instruction are used in libavcodec/armv4l/dsputil_arm_s.S which can be used on armv4 that doesn't support this instruction. Futhermore pld is a nop on some armv5 processor like arm926. Detect if pld is supported and have the preprocessor remove it when it's not supported. Fixes issue 393. patch by matthieu castet, castet.matthieu free fr
author diego
date Mon, 24 Mar 2008 11:49:59 +0000
parents 1e93e637fa21
children 316762ae96a7
comparison
equal deleted inserted replaced
6527:32b984487899 6528:28d0e7dac45d
16 @ 16 @
17 @ You should have received a copy of the GNU Lesser General Public 17 @ You should have received a copy of the GNU Lesser General Public
18 @ License along with FFmpeg; if not, write to the Free Software 18 @ License along with FFmpeg; if not, write to the Free Software
19 @ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 @ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 @ 20 @
21
22 #include "config.h"
23
24 #ifndef HAVE_PLD
25 .macro pld reg
26 .endm
27 #endif
21 28
22 .macro ADJ_ALIGN_QUADWORD_D shift, Rd0, Rd1, Rd2, Rd3, Rn0, Rn1, Rn2, Rn3, Rn4 29 .macro ADJ_ALIGN_QUADWORD_D shift, Rd0, Rd1, Rd2, Rd3, Rn0, Rn1, Rn2, Rn3, Rn4
23 mov \Rd0, \Rn0, lsr #(\shift * 8) 30 mov \Rd0, \Rn0, lsr #(\shift * 8)
24 mov \Rd1, \Rn1, lsr #(\shift * 8) 31 mov \Rd1, \Rn1, lsr #(\shift * 8)
25 mov \Rd2, \Rn2, lsr #(\shift * 8) 32 mov \Rd2, \Rn2, lsr #(\shift * 8)