This module consists of utility functions tailored towards LUT that are commonly applicable to various MATHLIB kernels.
◆ 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_LUTReadUpperBits()
template<typename vecType >
| static c7x::uint_vec MATHLIB_LUTReadUpperBits |
( |
vecType |
vecOffset | ) |
|
|
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 86 of file MATHLIB_lut.h.
◆ MATHLIB_LUTReadLowerBits()
template<typename vecType >
| static c7x::uint_vec MATHLIB_LUTReadLowerBits |
( |
vecType |
vecOffset | ) |
|
|
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 111 of file MATHLIB_lut.h.
◆ MATHLIB_LUTInit()
| static void MATHLIB_LUTInit |
( |
| ) |
|
|
inlinestatic |
This method intializes the upper and lower bit lookup tables.
Definition at line 130 of file MATHLIB_lut.h.