Generic wrapper for the elementwise right-shift operation.
More...
#include <ShiftRV.h>
|
template<typename T1 , typename T2 > |
decltype(auto) BLAZE_ALWAYS_INLINE | operator() (const T1 &a, const T2 &b) const |
| Returns the result of the elementwise right-shift operation for the given objects/values. More...
|
|
template<typename T1 , typename T2 > |
decltype(auto) BLAZE_ALWAYS_INLINE | load (const T1 &a, const T2 &b) const |
| Returns the result of the elementwise right-shift operation for the given SIMD vector. More...
|
|
|
template<typename T1 , typename T2 > |
static constexpr bool | simdEnabled () |
| Returns whether SIMD is enabled for the specified data types T1 and T2. More...
|
|
static constexpr bool | paddingEnabled () |
| Returns whether the operation supports padding, i.e. whether it can deal with zeros. More...
|
|
Generic wrapper for the elementwise right-shift operation.
◆ load()
template<typename T1 , typename T2 >
Returns the result of the elementwise right-shift operation for the given SIMD vector.
- Parameters
-
a | The SIMD vector to be shifted. |
b | The SIMD vector of bits to shift. |
- Returns
- The result of the elementwise right-shift operation for the given SIMD vector.
◆ operator()()
template<typename T1 , typename T2 >
decltype(auto) BLAZE_ALWAYS_INLINE blaze::ShiftRV::operator() |
( |
const T1 & |
a, |
|
|
const T2 & |
b |
|
) |
| const |
|
inline |
Returns the result of the elementwise right-shift operation for the given objects/values.
- Parameters
-
a | The given object/value to be shifted. |
b | The number of bits to shift. |
- Returns
- The result of the elementwise right-shift operation for the given objects/values.
◆ paddingEnabled()
static constexpr bool blaze::ShiftRV::paddingEnabled |
( |
| ) |
|
|
inlinestatic |
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
- Returns
- true in case padding is supported, false if not.
◆ simdEnabled()
template<typename T1 , typename T2 >
static constexpr bool blaze::ShiftRV::simdEnabled |
( |
| ) |
|
|
inlinestatic |
Returns whether SIMD is enabled for the specified data types T1 and T2.
- Returns
- true in case SIMD is enabled for the data types T1 and T2, false if not.
The documentation for this struct was generated from the following file: