![]() |
MATHLIB User Guide
|
File to hold common structure, enums, macros and functions for MATHLIB.
Definition in file MATHLIB_types.h.
Go to the source code of this file.
Macros | |
| #define | MATHLIB_DEBUGPRINT 0 |
| Enable debug printf statements. More... | |
| #define | MATHLIB_const const |
| #define | __PRAGMA(x) _Pragma(#x) |
| #define | __INLINE_FUNC(x) __PRAGMA(FUNC_ALWAYS_INLINE(x)) |
| #define | MATHLIB_DEBUGPRINTFN(N, fmt, ...) |
| #define | MATHLIB_PRINTF(fmt, ...) |
| #define | MATHLIB_MESG(fmt, ...) |
| #define | MATHLIB_SOFT_MMA_RESET 0 |
| #define | RTS 1 |
| #define | MATHLIB_STATIC_INLINE static inline |
| #define | MATHLIB_PARAM_SIZE 128 |
| Parameter structure size in bytes. More... | |
| #define | MATHLIB_MMA_ACCUMULATOR_BYTE_WIDTH_8_BIT 4 |
| MMA accumulator width in bytes for 8 bit output data width. More... | |
| #define | MATHLIB_MMA_ACCUMULATOR_BYTE_WIDTH_16_BIT 8 |
| MMA accumulator width in bytes for 16 bit output data width. More... | |
| #define | MATHLIB_MMA_ACCUMULATOR_BYTE_WIDTH_32_BIT 16 |
| MMA accumulator width in bytes for 32 bit output data width. More... | |
| #define | MATHLIB_ALIGN_SHIFT_64BYTES 6 |
| Number of bits to shift for 64-byte memory alignment. More... | |
| #define | MATHLIB_ALIGN_SHIFT_128BYTES 7 |
| Number of bits to shift for 128-byte memory alignment. More... | |
| #define | MATHLIB_ALIGN_SHIFT_256BYTES 8 |
| Number of bits to shift for 256-byte memory alignment. More... | |
| #define | MATHLIB_ALIGN_64BYTES (1 << MATHLIB_ALIGN_SHIFT_64BYTES) |
| Align by 64-byte memory alignment. More... | |
| #define | MATHLIB_ALIGN_128BYTES (1 << MATHLIB_ALIGN_SHIFT_128BYTES) |
| Align by 128-byte memory alignment. More... | |
| #define | MATHLIB_ALIGN_256BYTES (1 << MATHLIB_ALIGN_SHIFT_256BYTES) |
| Align by 256-byte memory alignment. More... | |
| #define | MATHLIB_L2DATA_ALIGN_SHIFT MATHLIB_ALIGN_SHIFT_64BYTES |
| Set the default L2 data alignment. More... | |
| #define | MATHLIB_L2DATA_ALIGNMENT (((uint32_t)1) << ((uint32_t)MATHLIB_L2DATA_ALIGN_SHIFT)) |
| Macro that specifies the alignment of data buffers in L2 memory for optimal performance. More... | |
Typedefs | |
| typedef double | MATHLIB_D64 |
| Double precision floating point. More... | |
| typedef float | MATHLIB_F32 |
| Single precision floating point. More... | |
| typedef MATHLIB_STATUS_NAME | MATHLIB_STATUS |
| Return value for MATHLIB functions. More... | |
| typedef void * | MATHLIB_kernelHandle |
| Handle type for MATHLIB operations. More... | |
Enumerations | |
| enum | MATHLIB_STATUS_NAME { MATHLIB_SUCCESS = 0, MATHLIB_ERR_FAILURE = 1, MATHLIB_ERR_INVALID_VALUE = 2, MATHLIB_ERR_INVALID_TYPE = 3, MATHLIB_ERR_INVALID_DIMENSION = 4, MATHLIB_ERR_NULL_POINTER = 5, MATHLIB_ERR_NOT_IMPLEMENTED = 6, MATHLIB_ERR_NOT_EQUAL_WIDTH_STRIDE = 7, MATHLIB_ERR_NOT_ALIGNED_PTRS_STRIDES = 8, MATHLIB_ERR_NOT_ALIGNED_WIDTHS = 9, MATHLIB_ERR_BUFFER_TOO_SMALL = 10, MATHLIB_ERR_INVALID_ACTIVATION = 11, MATHLIB_ERR_INVALID_SHIFT = 12, MATHLIB_ERROR_MAX = 13 } |
| The enumeration of all status codes. More... | |
| enum | MATHLIB_FUNCTION_STYLE { MATHLIB_FUNCTION_NATC = 0, MATHLIB_FUNCTION_OPTIMIZED, MATHLIB_FUNCTION_MAX = 128 } |
| Enumeration for the style of function implementation. More... | |
| enum | MATHLIB_buffer_mode_e { MATHLIB_LINEAR = 0, MATHLIB_SE_CIRCULAR, MATHLIB_BUF_CIRCULAR } |
| Buffer structure for input feature maps and coefficients of MATHLIB_CNN_convolve_row_ixX_ixX_oxX. More... | |
| #define MATHLIB_DEBUGPRINT 0 |
Enable debug printf statements.
Definition at line 50 of file MATHLIB_types.h.
| #define MATHLIB_const const |
Definition at line 56 of file MATHLIB_types.h.
| #define __PRAGMA | ( | x | ) | _Pragma(#x) |
Definition at line 59 of file MATHLIB_types.h.
| #define __INLINE_FUNC | ( | x | ) | __PRAGMA(FUNC_ALWAYS_INLINE(x)) |
Definition at line 63 of file MATHLIB_types.h.
| #define MATHLIB_DEBUGPRINTFN | ( | N, | |
| fmt, | |||
| ... | |||
| ) |
Definition at line 106 of file MATHLIB_types.h.
| #define MATHLIB_PRINTF | ( | fmt, | |
| ... | |||
| ) |
Definition at line 107 of file MATHLIB_types.h.
| #define MATHLIB_MESG | ( | fmt, | |
| ... | |||
| ) |
Definition at line 117 of file MATHLIB_types.h.
| #define MATHLIB_SOFT_MMA_RESET 0 |
Definition at line 138 of file MATHLIB_types.h.
| #define RTS 1 |
Definition at line 139 of file MATHLIB_types.h.
| #define MATHLIB_STATIC_INLINE static inline |
Definition at line 142 of file MATHLIB_types.h.