Sean McGovern <gsean...@gmail.com> writes:

> ---
>  configure |   11 ++++++++++-
>  1 files changed, 10 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index a73d666..4ac8571 100755
> --- a/configure
> +++ b/configure
> @@ -1039,6 +1039,7 @@ ARCH_EXT_LIST='
>      ssse3
>      vfpv3
>      vis
> +    vsx
>  '
>
>  HAVE_LIST_PUB='
> @@ -1240,6 +1241,7 @@ mmi_deps="mips"
>
>  altivec_deps="ppc"
>  ppc4xx_deps="ppc"
> +vsx_deps="ppc"
>
>  vis_deps="sparc"
>
> @@ -1258,7 +1260,7 @@ fast_clz_if_any="alpha armv5te avr32 mips ppc x86"
>  fast_unaligned_if_any="armv6 ppc x86"
>
>  inline_asm_deps="!tms470"
> -need_memalign="altivec neon sse"
> +need_memalign="altivec neon sse vsx"
>
>  symver_if_any="symver_asm_label symver_gnu_asm"
>
> @@ -2291,6 +2293,10 @@ elif enabled ppc; then
>              cpuflags="-mcpu=8540 -mhard-float"
>              disable altivec
>          ;;
> +        power7)
> +            cpuflags="-mcpu=power7 -mpowerpc-gfxopt -mpowerpc64"
> +            disable altivec
> +        ;;

Does power7 have altivec or not?

>      esac
>
>  elif enabled x86; then
> @@ -2762,6 +2768,9 @@ int main (void) { (vector int) {1}; return 0; }
>  EOF
>      fi
>
> +    # IBM VSX (PowerISA 2.06+)
> +    enabled vsx && check_cflags -mvsx

This will enable vsx even if the CPU doesn't support it.

-- 
Måns Rullgård
m...@mansr.com
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to