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

Namespaces

namespace  inner
 

Data Structures

struct  Q15DSPVector
 Representation of a vector when DSP extension supported. More...
 
struct  vector_traits< Q15, DSP, typename std::enable_if< true >::type >
 Vector description for Q15 with DSP extensions. More...
 

Description


Data Structure Documentation

◆ Q15DSPVector

struct Q15DSPVector

Representation of a vector when DSP extension supported.

Public Member Functions

 Q15DSPVector ()
 Create new 0 initialized vector.
 
 Q15DSPVector (int32_t val)
 Create vector initialized from value.
 
 operator int32_t ()
 Return value in vector.
 

Constructor & Destructor Documentation

◆ Q15DSPVector()

Q15DSPVector ( int32_t  val)
inlineexplicit

Create vector initialized from value.

Parameters
[in]valThe value

◆ vector_traits< Q15, DSP, typename std::enable_if< true >::type >

struct vector_traits< Q15, DSP, typename std::enable_if< true >::type >

Vector description for Q15 with DSP extensions.

Public Types

typedef Q15 type
 Scalar datatype.
 
typedef type::value_type storage_type
 Storage datatype.
 
typedef Q15DSPVector vector
 Vector datatype.
 
typedef Q< 33, 30 > temp_accumulator
 Accumulator datatype.
 
typedef uint32_t predicate_t
 

Static Public Member Functions

static Q< 33, 30 > temp_acc_zero ()
 Zero accumulator.
 
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 some 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 = false
 No predicated loops.
 
static constexpr int nb_lanes = 2
 Number of lanes.
 

Member Typedef Documentation

◆ predicate_t

typedef uint32_t predicate_t

Dummy type since there is no predicated loop for DSP extensions

Member Function Documentation

◆ lane_value()

static constexpr int16_t lane_value ( const Q15  x)
inlinestaticconstexpr

Convert to lane value.

Parameters
[in]xValue
Returns
Lane value

◆ temp_acc_zero()

static Q< 33, 30 > temp_acc_zero ( )
inlinestatic

Zero accumulator.

Returns
Zero accumulator

◆ zero_lane()

static constexpr int16_t zero_lane ( )
inlinestaticconstexpr

Value to write in a lane to write 0.

Returns
Zero value for a lane