Vitis HLS Math Library

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
ft:locale
English (United States)
Release Date
2021-12-15
Version
2021.2 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.