Some of the functions here point to helpful documentation from the ACML library. Use that to get a general understanding of a particular function. For function prefixes and other details, please refer to the ‘readme’ files included in the LibM library downloads.

Scalar functions

Below is the list of scalar functions present in AMD LibM. The italicized items are non-C99 functions.

Trigonometric Hyperbolic Exponential & Logarithmic Power & Absolute value Nearest integer Remainder Manipulation Maximum, Minimum & Difference
cosf acoshf expf powf ceilf fmodf copysignf fdimf
cos acosh exp pow ceil fmod copysign fdim
sinf asinhf exp2f cbrtf floorf remainderf nextafterf fmaxf
sin asinh exp2 cbrt floor remainder nextafter fmax
tanf atanhf exp10f sqrtf truncf remquof nexttowardf fminf
tan atanh exp10 sqrt trunc remquo nexttoward fmin
acosf coshf expm1f hypotf lrintf NA nanf NA
acos cosh expm1 hypot lrint NA nan NA
asinf sinhf logf fabsf llrintf NA finitef NA
asin sinh log fabs llrint NA finite NA
atanf tanhf log10f fma rintf NA NA NA
atan tanh log10 fmaf rint NA NA NA
atan2f NA log2f NA lroundf NA NA NA
atan2 NA log2 NA lround NA NA NA
sincosf NA ilogbf NA llroundf NA NA NA
sincos NA ilogb NA llround NA NA NA
NA NA log1pf NA roundf NA NA NA
NA NA log1p NA round NA NA NA
NA NA logbf NA nearbyintf NA NA NA
NA NA logb NA nearbyint NA NA NA
NA NA modff NA NA NA NA NA
NA NA modf NA NA NA NA NA
NA NA frexpf NA NA NA NA NA
NA NA frexp NA NA NA NA NA
NA NA ldexpf NA NA NA NA NA
NA NA ldexp NA NA NA NA NA
NA NA scalbnf NA NA NA NA NA
NA NA scalbn NA NA NA NA NA
NA NA scalblnf NA NA NA NA NA
NA NA scalbln NA NA NA NA NA

 

Vector functions

Vector data-type variants Array variants
Exponential
vrs4_expf vrda_expf
vrd2_exp vrsa_exp
vrs4_exp2f vrsa_exp2f
vrd2_exp2 vrda_exp2
vrs4_exp10f vrsa_exp10f
vrd2_exp10 vrda_exp10
vrs4_expm1f vrsa_expm1f
vrd2_expm1 vrda_expm1
Logarithmic
vrs4_logf vrsa_logf
vrd2_log vrda_log
vrs4_log2f vrsa_log2f
vrd2_log2 vrda_log2
vrs4_log10f vrsa_log10f
vrd2_log10 vrda_log10
vrs4_log1pf vrsa_log1pf
vrd2_log1p vrda_log1p
Trigonometric
vrd2_cosh vrd2_cosh
vrs4_cosf vrsa_cosf
vrd2_cos vrda_cos
vrs4_sinf vrsa_sinf
vrd2_sin vrda_sin
Power
vrs4_cbrtf vrsa_cbrtf
vrd2_cbrt vrda_cbrt
vrs4_powf vrsa_powf

 

Feedback or questions?