![]() |
DSPLIB User Guide
|
This module consists of definitions (macros, structures, utility functions) that are commonly applicable to all DSPLIB kernels.
Data Structures | |
| struct | DSPLIB_bufParams1D_t |
| A structure for a 1 dimensional buffer descriptor. More... | |
| struct | DSPLIB_bufParams2D_t |
| A structure for a 2 dimensional buffer descriptor. More... | |
| struct | DSPLIB_bufParams3D_t |
| A structure for a 3 dimensional buffer descriptor. More... | |
| struct | DSPLIB_bufParamsND_t |
| A structure for a N dimensional buffer descriptor. More... | |
Functions | |
| static int32_t | DSPLIB_sizeof (uint32_t type) |
| Inline function returns number of bytes per element given a type of DSPLIB_data_type_e. More... | |
Typedefs | |
| typedef double | DSPLIB_D64 |
| Double precision floating point. More... | |
| typedef float | DSPLIB_F32 |
| Single precision floating point. More... | |
| typedef DSPLIB_STATUS_NAME | DSPLIB_STATUS |
| Return value for DSPLIB functions. More... | |
| typedef void * | DSPLIB_kernelHandle |
| Handle type for DSPLIB operations. More... | |
Macros | |
| #define | DSPLIB_ISSIGNED(type) ((type) < DSPLIB_UINT8 || (type) > DSPLIB_UINT128) |
| #define | DSPLIB_SIGNEDNESS(type) (DSPLIB_ISSIGNED((type)) ? "signed" : "unsigned") |
| #define | DSPLIB_PARAM_SIZE 128 |
| Parameter structure size in bytes. More... | |
| #define | DSPLIB_ALIGN_SHIFT_64BYTES 6 |
| Number of bits to shift for 64-byte memory alignment. More... | |
| #define | DSPLIB_ALIGN_SHIFT_128BYTES 7 |
| Number of bits to shift for 128-byte memory alignment. More... | |
| #define | DSPLIB_ALIGN_SHIFT_256BYTES 8 |
| Number of bits to shift for 256-byte memory alignment. More... | |
| #define | DSPLIB_ALIGN_64BYTES (1 << DSPLIB_ALIGN_SHIFT_64BYTES) |
| Align by 64-byte memory alignment. More... | |
| #define | DSPLIB_ALIGN_128BYTES (1 << DSPLIB_ALIGN_SHIFT_128BYTES) |
| Align by 128-byte memory alignment. More... | |
| #define | DSPLIB_ALIGN_256BYTES (1 << DSPLIB_ALIGN_SHIFT_256BYTES) |
| Align by 256-byte memory alignment. More... | |
| #define | DSPLIB_L2DATA_ALIGN_SHIFT DSPLIB_ALIGN_SHIFT_64BYTES |
| Set the default L2 data alignment. More... | |
| #define | DSPLIB_L2DATA_ALIGNMENT (((uint32_t) 1) << ((uint32_t) DSPLIB_L2DATA_ALIGN_SHIFT)) |
| Macro that specifies the alignment of data buffers in L2 memory for optimal performance. More... | |
| #define DSPLIB_ISSIGNED | ( | type | ) | ((type) < DSPLIB_UINT8 || (type) > DSPLIB_UINT128) |
Definition at line 57 of file DSPLIB_bufParams.h.
| #define DSPLIB_SIGNEDNESS | ( | type | ) | (DSPLIB_ISSIGNED((type)) ? "signed" : "unsigned") |
Definition at line 58 of file DSPLIB_bufParams.h.
| #define DSPLIB_PARAM_SIZE 128 |
Parameter structure size in bytes.
Definition at line 188 of file DSPLIB_types.h.
| #define DSPLIB_ALIGN_SHIFT_64BYTES 6 |
Number of bits to shift for 64-byte memory alignment.
Definition at line 196 of file DSPLIB_types.h.
| #define DSPLIB_ALIGN_SHIFT_128BYTES 7 |
Number of bits to shift for 128-byte memory alignment.
Definition at line 197 of file DSPLIB_types.h.
| #define DSPLIB_ALIGN_SHIFT_256BYTES 8 |
Number of bits to shift for 256-byte memory alignment.
Definition at line 198 of file DSPLIB_types.h.
| #define DSPLIB_ALIGN_64BYTES (1 << DSPLIB_ALIGN_SHIFT_64BYTES) |
Align by 64-byte memory alignment.
Definition at line 200 of file DSPLIB_types.h.
| #define DSPLIB_ALIGN_128BYTES (1 << DSPLIB_ALIGN_SHIFT_128BYTES) |
Align by 128-byte memory alignment.
Definition at line 201 of file DSPLIB_types.h.
| #define DSPLIB_ALIGN_256BYTES (1 << DSPLIB_ALIGN_SHIFT_256BYTES) |
Align by 256-byte memory alignment.
Definition at line 202 of file DSPLIB_types.h.
| #define DSPLIB_L2DATA_ALIGN_SHIFT DSPLIB_ALIGN_SHIFT_64BYTES |
Set the default L2 data alignment.
Definition at line 204 of file DSPLIB_types.h.
| #define DSPLIB_L2DATA_ALIGNMENT (((uint32_t) 1) << ((uint32_t) DSPLIB_L2DATA_ALIGN_SHIFT)) |
Macro that specifies the alignment of data buffers in L2 memory for optimal performance.
Definition at line 208 of file DSPLIB_types.h.
| typedef double DSPLIB_D64 |
Double precision floating point.
Definition at line 147 of file DSPLIB_types.h.
| typedef float DSPLIB_F32 |
Single precision floating point.
Definition at line 148 of file DSPLIB_types.h.
| typedef DSPLIB_STATUS_NAME DSPLIB_STATUS |
Return value for DSPLIB functions.
Definition at line 170 of file DSPLIB_types.h.
| typedef void* DSPLIB_kernelHandle |
Handle type for DSPLIB operations.
Definition at line 172 of file DSPLIB_types.h.
| enum DSPLIB_data_type_e |
The enumeration of all data types.
Definition at line 29 of file DSPLIB_bufParams.h.
| enum DSPLIB_dimension_e |
The enumeration of multidimensional buffer types.
| Enumerator | |
|---|---|
| DSPLIB_2D | Two dimensional buffer |
| DSPLIB_3D | Three dimensional buffer |
| DSPLIB_4D | Four dimensional buffer |
| DSPLIB_5D | Five dimensional buffer |
| DSPLIB_6D | Six dimensional buffer |
Definition at line 61 of file DSPLIB_bufParams.h.
| enum DSPLIB_STATUS_NAME |
The enumeration of all status codes.
Definition at line 151 of file DSPLIB_types.h.
Enumeration for the style of function implementation.
| Enumerator | |
|---|---|
| DSPLIB_FUNCTION_NATC | Natural C implementation of the function |
| DSPLIB_FUNCTION_OPTIMIZED | Optimized C implementation of the function for the MMA + C7x architecture |
| DSPLIB_FUNCTION_MAX | |
Definition at line 175 of file DSPLIB_types.h.
|
inlinestatic |
Inline function returns number of bytes per element given a type of DSPLIB_data_type_e.
Definition at line 136 of file DSPLIB_bufParams.h.