# HG changeset patch # User diego # Date 1231074324 0 # Node ID 06f8e00b14b3554be4a0b3accd9513fb3b03684f # Parent 31489c64c2afd3dac1656ad7bc5b42b5a2c19a65 Sync ARMv6t2 optimization support from FFmpeg. diff -r 31489c64c2af -r 06f8e00b14b3 configure --- a/configure Sun Jan 04 11:52:37 2009 +0000 +++ b/configure Sun Jan 04 13:05:24 2009 +0000 @@ -450,6 +450,7 @@ --enable-altivec enable AltiVec (PowerPC) [autodetect] --enable-armv5te enable DSP extensions (ARM) [autodetect] --enable-armv6 enable ARMv6 (ARM) [autodetect] + --enable-armv6t2 enable ARMv6t2 (ARM) [autodetect] --enable-armvfp enable ARM VFP (ARM) [autodetect] --enable-iwmmxt enable iWMMXt (ARM) [autodetect] --disable-fastmemcpy disable 3DNow!/SSE/MMX optimized memcpy [enable] @@ -499,6 +500,7 @@ _fast_cmov=auto _armv5te=auto _armv6=auto +_armv6t2=auto _armvfp=auto _iwmmxt=auto _mtrr=auto @@ -1266,6 +1268,8 @@ --disable-armv5te) _armv5te=no ;; --enable-armv6) _armv6=yes ;; --disable-armv6) _armv6=no ;; + --enable-armv6t2) _armv6t2=yes ;; + --disable-armv6t2) _armv6t2=no ;; --enable-armvfp) _armvfp=yes ;; --disable-armvfp) _armvfp=no ;; --enable-iwmmxt) _iwmmxt=yes ;; @@ -2545,6 +2549,16 @@ fi echores "$_armv6" + echocheck "ARMv6t2 (SIMD instructions)" + if test $_armv6t2 = "auto" ; then + cat > $TMPC << EOF +int main(void) { __asm__ volatile ("movt r0, #0"); return 0; } +EOF + _armv6t2=no + cc_check && _armv6t2=yes + fi + echores "$_armv6" + echocheck "ARM VFP" if test $_armvfp = "auto" ; then cat > $TMPC << EOF