Blaze  3.6
HasSIMDShiftRV.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_MATH_TYPETRAITS_HASSIMDSHIFTRV_H_
36 #define _BLAZE_MATH_TYPETRAITS_HASSIMDSHIFTRV_H_
37 
38 
39 //*************************************************************************************************
40 // Includes
41 //*************************************************************************************************
42 
49 
50 
51 namespace blaze {
52 
53 //=================================================================================================
54 //
55 // CLASS DEFINITION
56 //
57 //=================================================================================================
58 
59 //*************************************************************************************************
64 template< typename T1, typename T2 >
65 using HasSIMDShiftRVHelper =
66  BoolConstant< ( IsNumeric_v<T1> && IsIntegral_v<T1> &&
67  IsNumeric_v<T2> && IsIntegral_v<T2> &&
68  sizeof(T1) == sizeof(T2) ) &&
69  ( ( bool( BLAZE_AVX2_MODE ) &&
70  ( ( IsSigned_v<T1> && sizeof(T1) == 4UL ) ||
71  ( !IsSigned_v<T1> && sizeof(T1) >= 4UL ) ) ) ||
72  ( bool( BLAZE_MIC_MODE ) && sizeof(T1) == 4UL ) ||
73  ( bool( BLAZE_AVX512BW_MODE ) && sizeof(T1) == 2UL ) ||
74  ( bool( BLAZE_AVX512F_MODE ) && sizeof(T1) >= 4UL ) ) >;
76 //*************************************************************************************************
77 
78 
79 //*************************************************************************************************
100 template< typename T1 // Type of the left-hand side operand
101  , typename T2 > // Type of the right-hand side operand
103  : public BoolConstant< HasSIMDShiftRVHelper< RemoveCVRef_t<T1>, RemoveCVRef_t<T2> >::value >
104 {};
105 //*************************************************************************************************
106 
107 
108 //*************************************************************************************************
121 template< typename T1 // Type of the left-hand side operand
122  , typename T2 > // Type of the right-hand side operand
124 //*************************************************************************************************
125 
126 } // namespace blaze
127 
128 #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
#define BLAZE_AVX512BW_MODE
Compilation switch for the AVX512BW mode.This compilation switch enables/disables the AVX512BW mode....
Definition: Vectorization.h:264
Header file for the RemoveCVRef type trait.
Header file for the IsIntegral type trait.
#define BLAZE_AVX2_MODE
Compilation switch for the AVX2 mode.This compilation switch enables/disables the AVX2 mode....
Definition: Vectorization.h:228
constexpr bool HasSIMDShiftRV_v
Auxiliary variable template for the HasSIMDShiftRV type trait.The HasSIMDShiftRV_v variable template ...
Definition: HasSIMDShiftRV.h:123
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Availability of a SIMD elementwise right-shift for the given data types.Depending on the available in...
Definition: HasSIMDShiftRV.h:102
Header file for the IsNumeric type trait.
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.The BoolConstant alias template represents ...
Definition: IntegralConstant.h:110
Header file for the IsSigned type trait.
Header file for the IntegralConstant class template.
System settings for the SSE mode.