That is, this code will do wrong being compiled with VS2008?

     int cpuInfo[4];
     __cpuid(cpuInfo, 1);
 
     bool osUsesXSAVE_XRSTORE = cpuInfo[2] & (1 << 27) ||  false ;
     bool cpuAVXSuport = cpuInfo[2] & (1 << 28) ||  false ;
 
     if (osUsesXSAVE_XRSTORE && cpuAVXSuport)
     {
         // Check if the OS will save the YMM registers
         unsigned  long long xcrFeatureMask = 
_xgetbv(_XCR_XFEATURE_ENABLED_MASK);
         avxSupported = (xcrFeatureMask & 0x6) ||  false ;
     }

__cpuid() will not report correctly?




Thu, 22 May 2014 17:47:28 -0400 от "Rom Walton" <[email protected]>:
>Demand for AVX detection and support:
>http://insufficientlycomplicated.wordpress.com/2011/11/07/detecting-intel-advanced-vector-extensions-avx-in-visual-studio/
> 
>----- Rom
> 
>From: Raistmer the Sorcerer [mailto:[email protected]] 
>Sent: Thursday, May 22, 2014 5:19 PM
>To: Jord van der Elst
>Cc: BOINC Dev Mailing List; Rom Walton
>Subject: Re: [boinc_dev] WINBUILD: Minimum supported VS is now VS 2010
> 
>What reasons behind of this version shift?
>What unresolvable problems with VS2008 ?
>
>
>
>Thu, 22 May 2014 16:54:15 +0200 от Jord van der Elst < [email protected] >:
>WINBUILD: Minimum supported VS is now VS 2010
>
>So then that means that someone has to retest and rewrite all and everything of
>http://boinc.berkeley.edu/trac/wiki/CompileClient#Windows as the
>compilers the page is written for are VS 2005 (Express) and 2008.
>
>And what VS, full VS or is Express also an option?
>Or is Express still not capable of compiling 64bit applications?
>
>Thanks,
>
>-- Jord van der Elst.
>_______________________________________________
>boinc_dev mailing list
>[email protected]
>http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
>To unsubscribe, visit the above URL and
>(near bottom of page) enter your email address.
> 
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to