![]() |
![]()
| ![]() |
![]()
NAME
LIBRARYMath Library (libm, -lm) SYNOPSIS
double
float
long double
DESCRIPTIONThe
For instance, the expression 1.2e100 * 2.0e208 - 1.4e308 produces infinity due to overflow in the intermediate product, whereas fma(1.2e100, 2.0e208, -1.4e308) returns approximately 1.0e308. The fused multiply-add operation is often used to
improve the accuracy of calculations such as dot products. It may also be
used to improve performance on machines that implement it natively. The
macros IMPLEMENTATION NOTESIn general, these routines will behave as one would expect if x * y + z were computed with unbounded precision and range, then rounded to the precision of the return type. However, on some platforms, if z is NaN, these functions may not raise an exception even when the computation of x * y would have otherwise generated an invalid exception. SEE ALSOSTANDARDSThe HISTORYThe
|