Blaze 3.9
Public Member Functions | Static Public Member Functions | List of all members
blaze::ShiftLV Struct Reference

Generic wrapper for the elementwise left-shift operation. More...

#include <ShiftLV.h>

Public Member Functions

template<typename T1 , typename T2 >
BLAZE_ALWAYS_INLINE decltype(auto) operator() (T1 &&a, T2 &&b) const
 Returns the result of the elementwise left-shift operation for the given objects/values. More...
 
template<typename T1 , typename T2 >
BLAZE_ALWAYS_INLINE decltype(auto) load (const T1 &a, const T2 &b) const
 Returns the result of the elementwise left-shift operation for the given SIMD vector. More...
 

Static Public Member Functions

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...
 

Detailed Description

Generic wrapper for the elementwise left-shift operation.

Member Function Documentation

◆ load()

template<typename T1 , typename T2 >
BLAZE_ALWAYS_INLINE decltype(auto) blaze::ShiftLV::load ( const T1 &  a,
const T2 &  b 
) const
inline

Returns the result of the elementwise left-shift operation for the given SIMD vector.

Parameters
aThe SIMD vector to be shifted.
bThe SIMD vector of bits to shift.
Returns
The result of the elementwise left-shift operation for the given SIMD vector.

◆ operator()()

template<typename T1 , typename T2 >
BLAZE_ALWAYS_INLINE decltype(auto) blaze::ShiftLV::operator() ( T1 &&  a,
T2 &&  b 
) const
inline

Returns the result of the elementwise left-shift operation for the given objects/values.

Parameters
aThe given object/value to be shifted.
bThe number of bits to shift.
Returns
The result of the elementwise left-shift operation for the given objects/values.

◆ paddingEnabled()

static constexpr bool blaze::ShiftLV::paddingEnabled ( )
inlinestaticconstexpr

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::ShiftLV::simdEnabled ( )
inlinestaticconstexpr

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: