Hi,

On Wed, Jul 4, 2012 at 10:31 AM, Måns Rullgård <[email protected]> wrote:
> "Ronald S. Bultje" <[email protected]> writes:
>
>> From: "Ronald S. Bultje" <[email protected]>
>>
>> ---
>>  configure           |    9 +++++++++
>>  libavutil/x86/cpu.c |   11 +++++++++++
>>  2 files changed, 20 insertions(+)
>>
>> diff --git a/configure b/configure
>> index 4fc20a2..35d4406 100755
>> --- a/configure
>> +++ b/configure
>> @@ -1092,6 +1092,7 @@ HAVE_LIST="
>>      gettimeofday
>>      gnu_as
>>      ibm_asm
>> +    immintrin_h
>>      inet_aton
>>      inline_asm
>>      io_h
>> @@ -1171,6 +1172,7 @@ HAVE_LIST="
>>      windows_h
>>      winsock2_h
>>      xform_asm
>> +    xgetbv
>>      xmm_clobbers
>>      yasm
>>  "
>> @@ -2655,6 +2657,13 @@ int main (void) { _mm_empty(); return 0; }
>>  EOF
>>  fi
>>
>> +if check_header immintrin.h; then
>> +    check_cc <<EOF && enable xgetbv
>> +#include <immintrin.h>
>> +int main (void) { _xgetbv(0); return 0; }
>> +EOF
>> +fi
>
> The check_header call is a bit redundant since the check_cc will fail
> anyway if it's missing and you're not using HAVE_IMMINTRIN_H anywhere.

OK. Same for mmintrin_h and intrin_h then?

> I suppose you tested this, but I can't find any reference to _xgetbv()
> existing anywhere.  It's not provided by any compiler on my system (and
> they have immintrin.h), nor can I find it on MSDN.

http://connect.microsoft.com/VisualStudio/feedback/details/556622/missing-intrinsic-asm-function-needed-to-detect-avx-support

It's indeed missing on MSDN.

Ronald
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to