| 53 | unsigned int TP_SAT, |
| 54 | unsigned int TP_USE_LUT_RELOAD> |
| 55 | INLINE_DECL void kernelFuncApproxClass<TT_DATA, |
| 56 | TP_COARSE_BITS, |
| 57 | TP_FINE_BITS, |
| 58 | TP_DOMAIN_MODE, |
| 59 | TP_WINDOW_VSIZE, |
| 60 | TP_SHIFT, |
| 61 | TP_RND, |
| 62 | TP_SAT, |
| 63 | TP_USE_LUT_RELOAD>::funcApproxKernel(T_inputIF<TT_DATA> inInterface, |
| 64 | T_outputIF<TT_DATA> outInterface) { |
| 65 | if |
| 66 | constexpr(useLutAPI == 0) { |
| 67 | if |
| 68 | constexpr(isFloatingPoint) { funcApproxBasicFloat(inInterface, outInterface); } |
| 69 | else { |
| 70 | funcApproxBasic(inInterface, outInterface); |
| 71 | } |
| 72 | } |
| 73 | else { |
| 74 | if |
| 75 | constexpr(isFloatingPoint) { funcApproxLutAPIFloat(inInterface, outInterface); } |
| 76 | else { |
| 77 | funcApproxLutAPI(inInterface, outInterface); |
| 78 | } |
| 79 | } |
| 80 | }; |
| 81 | |
| 82 | template <typename TT_DATA, |
| 83 | unsigned int TP_COARSE_BITS, |