This module consists of utility functions tailored towards LUT that are commonly applicable to various MATHLIB kernels.
◆ MATHLIB_UPPER_WORDS_OFFSET
#define MATHLIB_UPPER_WORDS_OFFSET (0) |
◆ MATHLIB_LOWER_WORDS_OFFSET
#define MATHLIB_LOWER_WORDS_OFFSET (128) |
◆ MATHLIB_KTABLE_OFFSET
#define MATHLIB_KTABLE_OFFSET 0 |
◆ MATHLIB_JTABLE_OFFSET
#define MATHLIB_JTABLE_OFFSET 4 |
◆ MATHLIB_LOGTABLE_OFFSET
#define MATHLIB_LOGTABLE_OFFSET 8 |
◆ MATHLIB_VTABLE_OFFSET
#define MATHLIB_VTABLE_OFFSET 16 |
◆ MATHLIB_ILUTReadUpperBits()
template<typename vecType >
static c7x::uint_vec MATHLIB_ILUTReadUpperBits |
( |
vecType |
indices | ) |
|
|
inlinestatic |
This method reads bits 63-32 of LUT value at vecOffset.
- Template Parameters
-
vecType | : datatype of implementation |
- Parameters
-
[in] | vecOffset | : input vector of LUT offsets |
- Returns
- vector with LUT upper bit values.
Definition at line 121 of file MATHLIB_ilut.h.
◆ MATHLIB_ILUTReadLowerBits()
template<typename vecType >
static c7x::uint_vec MATHLIB_ILUTReadLowerBits |
( |
vecType |
indices | ) |
|
|
inlinestatic |
This method reads bits 31-0 of LUT value at vecOffset.
- Template Parameters
-
vecType | : datatype of implementation |
- Parameters
-
[in] | vecOffset | : input vector of LUT offsets |
- Returns
- vector with LUT lower bit values.
Definition at line 145 of file MATHLIB_ilut.h.
◆ MATHLIB_ILUTInit()
static void MATHLIB_ILUTInit |
( |
| ) |
|
|
inlinestatic |
This method intializes the upper and lower bit lookup tables.
Definition at line 163 of file MATHLIB_ilut.h.