
MSVC defines _M_IX86_FP, to indicate whether /arch was specified, and whether for SSE or SSE2. Unfortunately, it does not (currently) go beyond SSE2. Source: http://msdn.microsoft.com/en-us/library/b0084kay.aspx <http://msdn.microsoft.com/en-us/library/b0084kay.aspx> One possibility would be to require the user to manually define a macro, when using such compilers. Matt ________________________________ From: boost-bounces@lists.boost.org on behalf of Mathias Gaunard Sent: Thu 3/24/2011 8:07 AM To: boost@lists.boost.org Subject: Re: [boost] [GSoC] SIMD proposal [snip]
On MSVC, SSE built-ins are always available but may result in a runtime error. There are only the /arch:SSE and /arch:AVX option used to tell the compiler that it can generate SSE or AVX instructions automatically, there are no /arch:SSEx options.
Therefore there is no way to do the kind of thing you suggest with MSVC.