28 #ifndef VC_COMMON_SUPPORT_H_
29 #define VC_COMMON_SUPPORT_H_
32 #error "Vc/global.h must be included first!"
37 #if defined(Vc_GCC) && Vc_GCC >= 0x40400 && defined __SSE__
38 #define Vc_TARGET_NO_SIMD __attribute__((target("no-sse2,no-avx")))
40 #define Vc_TARGET_NO_SIMD
43 #include "common/macros.h"
44 namespace Vc_VERSIONED_NAMESPACE
94 template<
typename Impl>
113 #ifndef Vc_COMPILE_LIB
148 return isImplementationSupported<Vc::CurrentImplementation>();
150 #endif // Vc_COMPILE_LIB
155 #undef Vc_TARGET_NO_SIMD
157 #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...