Vitis HLS Math Library - 2022.1 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2022-06-07
Version
2022.1 English

The Vitis™ HLS Math Library (hls_math.h) provides coverage of math functions from C++ (cmath) libraries, and can be used in both C simulation and synthesis. It offers floating-point (single-precision, double-precision, and half-precision) for all functions and fixed-point support for the majority of the functions. The functions in hls_math.h is grouped in hls namespace, and can be used as in-place replacement of function of std namespace from the standard C++ math library (cmath).

Important: Using hls_math.h header in C code is not supported.