35 #ifndef _BLAZE_MATH_TYPETRAITS_ISSIMDENABLED_H_ 36 #define _BLAZE_MATH_TYPETRAITS_ISSIMDENABLED_H_ 71 template<
typename T,
typename... Args >
72 struct GetSIMDEnabled {
73 static constexpr
bool test(
bool (*fnc)() ) {
return fnc(); }
74 static constexpr
bool test(
bool b ) {
return b; }
75 static constexpr
bool value = test( T::template simdEnabled<Args...> );
86 template<
typename T >
87 struct GetSIMDEnabled<T> {
88 static constexpr
bool test(
bool (*fnc)() ) {
return fnc(); }
89 static constexpr
bool test(
bool b ) {
return b; }
90 static constexpr
bool value = test( T::simdEnabled );
106 template<
typename T,
typename... Args >
109 , GetSIMDEnabled<T,Args...>
110 , AlwaysFalse<T> >::value >
128 template<
typename T,
typename... Args >
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:72
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
constexpr bool IsSIMDEnabled_v
Auxiliary variable template for the IsSIMDEnabled type trait.The IsSIMDEnabled_v variable template pr...
Definition: IsSIMDEnabled.h:129
Header file for the HasMember type traits.
Header file for the AlwaysFalse type trait.
Header file for the IntegralConstant class template.
BLAZE_CREATE_HAS_DATA_OR_FUNCTION_MEMBER_TYPE_TRAIT(HasLoad, load)
Compile time check for data types.This type trait provides the information whether the given data typ...
Compile time check for data types.This type trait tests whether or not the given data type T is a SIM...
Definition: IsSIMDEnabled.h:107