HasSIMDRound.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_HASSIMDROUND_H_
36 #define _BLAZE_MATH_TYPETRAITS_HASSIMDROUND_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
46 
47 
48 namespace blaze {
49 
50 //=================================================================================================
51 //
52 // CLASS DEFINITION
53 //
54 //=================================================================================================
55 
56 //*************************************************************************************************
58 template< typename T // Type of the operand
59  , typename = void > // Restricting condition
60 struct HasSIMDRoundHelper
61 {
62  enum : bool { value = false };
63 };
65 //*************************************************************************************************
66 
67 
68 //*************************************************************************************************
70 template< typename T >
71 struct HasSIMDRoundHelper< T, EnableIf_< Or< IsFloat<T>, IsDouble<T> > > >
72 {
73  enum : bool { value = bool( BLAZE_SSE4_MODE ) ||
74  bool( BLAZE_AVX_MODE ) };
75 };
77 //*************************************************************************************************
78 
79 
80 //*************************************************************************************************
101 template< typename T > // Type of the operand
102 struct HasSIMDRound : public BoolConstant< HasSIMDRoundHelper< Decay_<T> >::value >
103 {};
104 //*************************************************************************************************
105 
106 } // namespace blaze
107 
108 #endif
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
Header file for the Decay type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
#define BLAZE_SSE4_MODE
Compilation switch for the SSE4 mode.This compilation switch enables/disables the SSE4 mode...
Definition: Vectorization.h:197
#define BLAZE_AVX_MODE
Compilation switch for the AVX mode.This compilation switch enables/disables the AVX mode...
Definition: Vectorization.h:214
Availability of a SIMD round operation for the given data type.Depending on the available instruction...
Definition: HasSIMDRound.h:102
typename EnableIf< Condition, T >::Type EnableIf_
Auxiliary alias declaration for the EnableIf class template.The EnableIf_ alias declaration provides ...
Definition: EnableIf.h:223
Header file for the IntegralConstant class template.
System settings for the SSE mode.