Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
math
typetraits
HasSIMDLog1p.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_TYPETRAITS_HASSIMDLOG1P_H_
36
#define _BLAZE_MATH_TYPETRAITS_HASSIMDLOG1P_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/IsDouble.h
>
46
#include <
blaze/util/typetraits/IsFloat.h
>
47
#include <
blaze/util/typetraits/RemoveCVRef.h
>
48
49
50
namespace
blaze {
51
52
//=================================================================================================
53
//
54
// CLASS DEFINITION
55
//
56
//=================================================================================================
57
58
//*************************************************************************************************
63
template
<
typename
T >
// Type of the operand
64
using
HasSIMDLog1pHelper =
65
BoolConstant
< (
IsFloat_v<T>
||
IsDouble_v<T>
) &&
66
(
bool
(
BLAZE_SLEEF_MODE
) ||
67
bool
(
BLAZE_XSIMD_MODE
) ) &&
68
( bool(
BLAZE_SSE_MODE
) ||
69
bool(
BLAZE_AVX_MODE
) ||
70
bool(
BLAZE_MIC_MODE
) ||
71
bool(
BLAZE_AVX512F_MODE
) ) >;
73
//*************************************************************************************************
74
75
76
//*************************************************************************************************
97
template
<
typename
T >
// Type of the operand
98
struct
HasSIMDLog1p
99
:
public
BoolConstant
< HasSIMDLog1pHelper< RemoveCVRef_t<T> >::value >
100
{};
101
//*************************************************************************************************
102
103
104
//*************************************************************************************************
117
template
<
typename
T >
// Type of the operand
118
constexpr
bool
HasSIMDLog1p_v
=
HasSIMDLog1p<T>::value
;
119
//*************************************************************************************************
120
121
}
// namespace blaze
122
123
#endif
IntegralConstant.h
Header file for the IntegralConstant class template.
IsDouble.h
Header file for the IsDouble type trait.
IsFloat.h
Header file for the IsFloat type trait.
RemoveCVRef.h
Header file for the RemoveCVRef type trait.
blaze::HasSIMDLog1p_v
constexpr bool HasSIMDLog1p_v
Auxiliary variable template for the HasSIMDLog1p type trait.
Definition
HasSIMDLog1p.h:118
BLAZE_AVX_MODE
#define BLAZE_AVX_MODE
Compilation switch for the AVX mode.
Definition
Vectorization.h:211
BLAZE_AVX512F_MODE
#define BLAZE_AVX512F_MODE
Compilation switch for the AVX512F mode.
Definition
Vectorization.h:246
BLAZE_XSIMD_MODE
#define BLAZE_XSIMD_MODE
Compilation switch for the XSIMD mode.
Definition
Vectorization.h:383
BLAZE_MIC_MODE
#define BLAZE_MIC_MODE
Compilation switch for the MIC mode.
Definition
Vectorization.h:299
BLAZE_SSE_MODE
#define BLAZE_SSE_MODE
Compilation switch for the SSE mode.
Definition
Vectorization.h:126
BLAZE_SLEEF_MODE
#define BLAZE_SLEEF_MODE
Compilation switch for the Sleef mode.
Definition
Vectorization.h:366
blaze::IsFloat_v
constexpr bool IsFloat_v
Auxiliary variable template for the IsFloat type trait.
Definition
IsFloat.h:138
blaze::IsDouble_v
constexpr bool IsDouble_v
Auxiliary variable template for the IsDouble type trait.
Definition
IsDouble.h:138
blaze::BoolConstant
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition
IntegralConstant.h:110
blaze::HasSIMDLog1p
Availability of a SIMD log1p operation for the given data type.
Definition
HasSIMDLog1p.h:100
Vectorization.h
System settings for the SSE mode.
Generated by
1.18.0