The C Standard Library Mathematical Functions (libm) - 2025.1 English - UG1304

Versal Adaptive SoC System Software Developers Guide (Versal AI Edge Series Gen 2 and Versal Prime Series Gen 2) (UG1304)

Document ID
UG1304
Release Date
2025-06-23
Version
2025.1 English

The following table lists the libm mathematical C modules.

Table 1. libm Modules by Function Types and Listing
Function Type Supported Functions
Algebraic cbrt, hypot, sqrt
Elementary transcendental asin, acos, atan, atan2, asinh, acosh, atanh, exp, expm1, pow, log, log1p, log10, sin, cos, tan, sinh, cosh, tanh
Higher transcendentals j0, j1, jn, y0, y1, yn, erf, erfc, gamma, lgamma, and gamma_ramma_r
Integral rounding eil, floor, rint
IEEE standard recommended copysign, fmod, ilogb, nextafter, remainder, scalbn, and fabs
IEEE classification isnan
Floating point logb, scalb, significand
User-defined error handling routine matherr