CMSIS-DSP  
CMSIS DSP Software Library
 
Loading...
Searching...
No Matches

Namespaces

namespace  inner
 

Data Structures

struct  vector_traits< Q15, arch, typename std::enable_if< std::is_base_of< Helium, arch >::value >::type >
 Vector features for Q15 on Helium. More...
 

Description


Data Structure Documentation

◆ vector_traits< Q15, arch, typename std::enable_if< std::is_base_of< Helium, arch >::value >::type >

struct vector_traits< Q15, arch, typename std::enable_if< std::is_base_of< Helium, arch >::value >::type >
template<typename arch>
struct vector_traits< Q15, arch, typename std::enable_if< std::is_base_of< Helium, arch >::value >::type >

Vector features for Q15 on Helium.

Template Parameters
archCurrent architecture

Public Types

typedef Q15 type
 Scalar datatype.
 
typedef type::value_type storage_type
 Storage datatype (int16_t)
 
typedef int16x8_t vector
 Vector datatype.
 
typedef Q< 33, 30 > temp_accumulator
 Temp accumulator datatype.
 
typedef mve_pred16_t predicate_t
 Predicate for loop.
 

Static Public Member Functions

static Q< 33, 30 > temp_acc_zero ()
 Zero.
 
static constexpr int16_t zero_lane ()
 Value to write in a lane to write 0.
 
static constexpr int16_t lane_value (const Q15 x)
 Convert to lane value.
 

Static Public Attributes

static constexpr bool has_vector = true
 Has vector instructions.
 
static constexpr bool is_float = false
 Is not float.
 
static constexpr bool is_fixed = true
 Is fixed point.
 
static constexpr bool has_predicate = true
 Has predicated loop.
 
static constexpr int nb_lanes = 8
 Number of lanes.
 

Member Function Documentation

◆ lane_value()

static constexpr int16_t lane_value ( const Q15  x)
inlinestaticconstexpr

Convert to lane value.

Parameters
[in]xLane value
Returns
Lane value

◆ temp_acc_zero()

static Q< 33, 30 > temp_acc_zero ( )
inlinestatic

Zero.

Returns
Zero with accumulator datatype

◆ zero_lane()

static constexpr int16_t zero_lane ( )
inlinestaticconstexpr

Value to write in a lane to write 0.

Returns
Zero value