Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
HasSIMDShiftLV.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_HASSIMDSHIFTLV_H_
36
#define _BLAZE_MATH_TYPETRAITS_HASSIMDSHIFTLV_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/system/Vectorization.h
>
44
#include <
blaze/util/IntegralConstant.h
>
45
#include <
blaze/util/typetraits/IsIntegral.h
>
46
#include <
blaze/util/typetraits/IsNumeric.h
>
47
#include <
blaze/util/typetraits/IsSigned.h
>
48
#include <
blaze/util/typetraits/RemoveCVRef.h
>
49
50
51
namespace
blaze {
52
53
//=================================================================================================
54
//
55
// CLASS DEFINITION
56
//
57
//=================================================================================================
58
59
//*************************************************************************************************
64
template
<
typename
T1,
typename
T2 >
65
using
HasSIMDShiftLVHelper =
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
) &&
sizeof
(T1) >= 4UL ) ||
70
(
bool
(
BLAZE_MIC_MODE
) &&
sizeof
(T1) == 4UL ) ||
71
(
bool
(
BLAZE_AVX512BW_MODE
) &&
sizeof
(T1) == 2UL ) ||
72
(
bool
(
BLAZE_AVX512F_MODE
) &&
sizeof
(T1) >= 4UL ) ) >;
74
//*************************************************************************************************
75
76
77
//*************************************************************************************************
98
template
<
typename
T1
// Type of the left-hand side operand
99
,
typename
T2 >
// Type of the right-hand side operand
100
struct
HasSIMDShiftLV
101
:
public
BoolConstant
< HasSIMDShiftLVHelper< RemoveCVRef_t<T1>, RemoveCVRef_t<T2> >::value >
102
{};
103
//*************************************************************************************************
104
105
106
//*************************************************************************************************
119
template
<
typename
T1
// Type of the left-hand side operand
120
,
typename
T2 >
// Type of the right-hand side operand
121
constexpr
bool
HasSIMDShiftLV_v
=
HasSIMDShiftLV<T1,T2>::value
;
122
//*************************************************************************************************
123
124
}
// namespace blaze
125
126
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
IsIntegral.h
Header file for the IsIntegral type trait.
IsNumeric.h
Header file for the IsNumeric type trait.
IsSigned.h
Header file for the IsSigned type trait.
RemoveCVRef.h
Header file for the RemoveCVRef type trait.
blaze::HasSIMDShiftLV_v
constexpr bool HasSIMDShiftLV_v
Auxiliary variable template for the HasSIMDShiftLV type trait.
Definition
HasSIMDShiftLV.h:121
BLAZE_AVX512F_MODE
#define BLAZE_AVX512F_MODE
Compilation switch for the AVX512F mode.
Definition
Vectorization.h:246
BLAZE_AVX512BW_MODE
#define BLAZE_AVX512BW_MODE
Compilation switch for the AVX512BW mode.
Definition
Vectorization.h:264
BLAZE_AVX2_MODE
#define BLAZE_AVX2_MODE
Compilation switch for the AVX2 mode.
Definition
Vectorization.h:228
BLAZE_MIC_MODE
#define BLAZE_MIC_MODE
Compilation switch for the MIC mode.
Definition
Vectorization.h:299
blaze::IsNumeric_v
constexpr bool IsNumeric_v
Auxiliary variable template for the IsNumeric type trait.
Definition
IsNumeric.h:132
blaze::IsIntegral_v
constexpr bool IsIntegral_v
Auxiliary variable template for the IsIntegral type trait.
Definition
IsIntegral.h:95
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
blaze::HasSIMDShiftLV
Availability of an SIMD elementwise left-shift for the given data types.
Definition
HasSIMDShiftLV.h:102
Vectorization.h
System settings for the SSE mode.
Generated by
1.18.0