Blaze  3.6
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 
44 #include <blaze/util/EnableIf.h>
47 
48 
49 namespace blaze {
50 
51 //=================================================================================================
52 //
53 // CLASS DEFINITION
54 //
55 //=================================================================================================
56 
57 //*************************************************************************************************
62 template< typename T > // Type of the operand
63 using HasSIMDRoundHelper =
64  BoolConstant< ( IsFloat_v<T> &&
65  ( bool( BLAZE_SSE4_MODE ) ||
66  bool( BLAZE_AVX_MODE ) ||
67  bool( BLAZE_MIC_MODE ) ||
68  bool( BLAZE_AVX512F_MODE ) ) ) ||
69  ( IsDouble_v<T> &&
70  ( bool( BLAZE_SSE4_MODE ) ||
71  bool( BLAZE_AVX_MODE ) ||
72  bool( BLAZE_AVX512F_MODE ) ) ) >;
74 //*************************************************************************************************
75 
76 
77 //*************************************************************************************************
98 template< typename T > // Type of the operand
100  : public BoolConstant< HasSIMDRoundHelper< RemoveCVRef_t<T> >::value >
101 {};
102 //*************************************************************************************************
103 
104 
105 //*************************************************************************************************
118 template< typename T > // Type of the operand
120 //*************************************************************************************************
121 
122 } // namespace blaze
123 
124 #endif
#define BLAZE_AVX512F_MODE
Compilation switch for the AVX512F mode.This compilation switch enables/disables the AVX512F mode....
Definition: Vectorization.h:246
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:72
#define BLAZE_MIC_MODE
Compilation switch for the MIC mode.This compilation switch enables/disables the MIC mode....
Definition: Vectorization.h:299
Header file for the RemoveCVRef type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the EnableIf class template.
#define BLAZE_SSE4_MODE
Compilation switch for the SSE4 mode.This compilation switch enables/disables the SSE4 mode....
Definition: Vectorization.h:194
#define BLAZE_AVX_MODE
Compilation switch for the AVX mode.This compilation switch enables/disables the AVX mode....
Definition: Vectorization.h:211
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.The BoolConstant alias template represents ...
Definition: IntegralConstant.h:110
Availability of a SIMD round operation for the given data type.Depending on the available instruction...
Definition: HasSIMDRound.h:99
Header file for the IntegralConstant class template.
System settings for the SSE mode.
constexpr bool HasSIMDRound_v
Auxiliary variable template for the HasSIMDRound type trait.The HasSIMDRound_v variable template prov...
Definition: HasSIMDRound.h:119