(.js)
laraImport("clava.hls.MathAnalysis");
(.lara)
import clava.hls.MathAnalysis;
Aspects:
Global Functions:
Applies a series of mathemtatical function replacements using the following rules:
- For every function with a signature requiring args of type "double" but with the
provided args of type "float", it replaces the function by its "float" equivalent,
if present on the provided math.h info implementation
- If a square root is found, it is replaced by a fast inverse square root and a multiplication,
for both "double" and "float" types, as required. The implementation of the functions is added
to the source file
- Replaces calls to the "pow" function using an integer exponent with a series of multiplications
rsqrt()