Blaze 3.9
HasSIMDInvCbrt.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_TYPETRAITS_HASSIMDINVCBRT_H_
36#define _BLAZE_MATH_TYPETRAITS_HASSIMDINVCBRT_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 HasSIMDInvCbrtHelper =
65 BoolConstant< ( IsFloat_v<T> || IsDouble_v<T> ) &&
66 bool( BLAZE_SVML_MODE ) &&
67 ( bool( BLAZE_SSE_MODE ) ||
68 bool( BLAZE_AVX_MODE ) ||
69 bool( BLAZE_AVX512F_MODE ) ) >;
71//*************************************************************************************************
72
73
74//*************************************************************************************************
95template< typename T > // Type of the operand
97 : public BoolConstant< HasSIMDInvCbrtHelper< RemoveCVRef_t<T> >::value >
98{};
99//*************************************************************************************************
100
101
102//*************************************************************************************************
115template< typename T > // Type of the operand
117//*************************************************************************************************
118
119} // namespace blaze
120
121#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 HasSIMDInvCbrt_v
Auxiliary variable template for the HasSIMDInvCbrt type trait.
Definition: HasSIMDInvCbrt.h:116
#define BLAZE_AVX_MODE
Compilation switch for the AVX mode.
Definition: Vectorization.h:211
#define BLAZE_SVML_MODE
Compilation switch for the SVML mode.
Definition: Vectorization.h:349
#define BLAZE_AVX512F_MODE
Compilation switch for the AVX512F mode.
Definition: Vectorization.h:246
#define BLAZE_SSE_MODE
Compilation switch for the SSE mode.
Definition: Vectorization.h:126
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition: IntegralConstant.h:110
Availability of a SIMD inverse cubic root operation for the given data type.
Definition: HasSIMDInvCbrt.h:98
Generic wrapper for a compile time constant integral value.
Definition: IntegralConstant.h:74
System settings for the SSE mode.