Blaze 3.9
HasSIMDShiftLI.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_TYPETRAITS_HASSIMDSHIFTLI_H_
36#define _BLAZE_MATH_TYPETRAITS_HASSIMDSHIFTLI_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
49
50
51namespace blaze {
52
53//=================================================================================================
54//
55// CLASS DEFINITION
56//
57//=================================================================================================
58
59//*************************************************************************************************
64template< typename T >
65using HasSIMDShiftLIHelper =
66 BoolConstant< ( IsNumeric_v<T> && IsIntegral_v<T> ) &&
67 ( ( bool( BLAZE_SSE2_MODE ) && sizeof(T) >= 2UL ) ||
68 ( bool( BLAZE_AVX2_MODE ) && sizeof(T) >= 2UL ) ||
69 ( bool( BLAZE_MIC_MODE ) && sizeof(T) == 4UL ) ||
70 ( bool( BLAZE_AVX512BW_MODE ) && sizeof(T) == 2UL ) ||
71 ( bool( BLAZE_AVX512F_MODE ) && sizeof(T) >= 4UL ) ) >;
73//*************************************************************************************************
74
75
76//*************************************************************************************************
98template< typename T > // Type of the operand
100 : public BoolConstant< HasSIMDShiftLIHelper< RemoveCVRef_t<T> >::value >
101{};
102//*************************************************************************************************
103
104
105//*************************************************************************************************
118template< typename T > // Type of the operand
120//*************************************************************************************************
121
122} // namespace blaze
123
124#endif
Header file for the IntegralConstant class template.
Header file for the IsIntegral type trait.
Header file for the IsNumeric type trait.
Header file for the IsSigned type trait.
Header file for the RemoveCVRef type trait.
constexpr bool HasSIMDShiftLI_v
Auxiliary variable template for the HasSIMDShiftLI type trait.
Definition: HasSIMDShiftLI.h:119
#define BLAZE_AVX512F_MODE
Compilation switch for the AVX512F mode.
Definition: Vectorization.h:246
#define BLAZE_AVX512BW_MODE
Compilation switch for the AVX512BW mode.
Definition: Vectorization.h:264
#define BLAZE_AVX2_MODE
Compilation switch for the AVX2 mode.
Definition: Vectorization.h:228
#define BLAZE_MIC_MODE
Compilation switch for the MIC mode.
Definition: Vectorization.h:299
#define BLAZE_SSE2_MODE
Compilation switch for the SSE2 mode.
Definition: Vectorization.h:143
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition: IntegralConstant.h:110
Availability of a SIMD uniform left-shift for the given data types.
Definition: HasSIMDShiftLI.h:101
Generic wrapper for a compile time constant integral value.
Definition: IntegralConstant.h:74
System settings for the SSE mode.