Blaze 3.9
Loading...
Searching...
No Matches
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
48
49
50namespace blaze {
51
52//=================================================================================================
53//
54// CLASS DEFINITION
55//
56//=================================================================================================
57
58//*************************************************************************************************
63template< typename T > // Type of the operand
64using HasSIMDRoundHelper =
66 ( bool( BLAZE_SSE4_MODE ) ||
67 bool( BLAZE_AVX_MODE ) ||
68 bool( BLAZE_MIC_MODE ) ||
69 bool( BLAZE_AVX512F_MODE ) ) ) ||
70 ( IsDouble_v<T> &&
71 ( bool( BLAZE_SSE4_MODE ) ||
72 bool( BLAZE_AVX_MODE ) ||
73 bool( BLAZE_AVX512F_MODE ) ) ) >;
75//*************************************************************************************************
76
77
78//*************************************************************************************************
99template< typename T > // Type of the operand
101 : public BoolConstant< HasSIMDRoundHelper< RemoveCVRef_t<T> >::value >
102{};
103//*************************************************************************************************
104
105
106//*************************************************************************************************
119template< typename T > // Type of the operand
121//*************************************************************************************************
122
123} // namespace blaze
124
125#endif
Header file for the IntegralConstant class template.
Header file for the IsDouble type trait.
Header file for the IsFloat type trait.
Header file for the RemoveCVRef type trait.
constexpr bool HasSIMDRound_v
Auxiliary variable template for the HasSIMDRound type trait.
Definition HasSIMDRound.h:120
#define BLAZE_AVX_MODE
Compilation switch for the AVX mode.
Definition Vectorization.h:211
#define BLAZE_AVX512F_MODE
Compilation switch for the AVX512F mode.
Definition Vectorization.h:246
#define BLAZE_SSE4_MODE
Compilation switch for the SSE4 mode.
Definition Vectorization.h:194
#define BLAZE_MIC_MODE
Compilation switch for the MIC mode.
Definition Vectorization.h:299
constexpr bool IsFloat_v
Auxiliary variable template for the IsFloat type trait.
Definition IsFloat.h:138
constexpr bool IsDouble_v
Auxiliary variable template for the IsDouble type trait.
Definition IsDouble.h:138
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition IntegralConstant.h:110
Availability of a SIMD round operation for the given data type.
Definition HasSIMDRound.h:102
System settings for the SSE mode.