29 #ifndef VC_COMMON_SUPPORT_H_
30 #define VC_COMMON_SUPPORT_H_
33 #error "Vc/global.h must be included first!"
38 #if defined(Vc_GCC) && Vc_GCC >= 0x40400 && defined __SSE__
39 #define Vc_TARGET_NO_SIMD __attribute__((target("no-sse2,no-avx")))
41 #define Vc_TARGET_NO_SIMD
44 #include "common/macros.h"
45 namespace Vc_VERSIONED_NAMESPACE
95 template<
typename Impl>
114 #ifndef Vc_COMPILE_LIB
149 return isImplementationSupported<Vc::CurrentImplementation>();
151 #endif // Vc_COMPILE_LIB
156 #undef Vc_TARGET_NO_SIMD
158 #endif // VC_COMMON_SUPPORT_H_
unsigned int extraInstructionsSupported()
Determines the extra instructions supported by the current CPU.
Implementation
Enum to identify a certain SIMD instruction set.
Vc::Implementation bestImplementationSupported()
Determines the best supported implementation for the current system.
bool currentImplementationSupported()
Tests that the CPU and Operating System support the vector unit which was compiled for...
bool isImplementationSupported(Vc::Implementation impl)
Tests whether the given implementation is supported by the system the code is executing on...