Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fma(3m) [hpux man page]

fma(3M) 																   fma(3M)

NAME
fma(), fmaf(), fmaw(), fmal(), fmaq() - floating multiply-add functions SYNOPSIS
DESCRIPTION
returns (x*y) + z, rounded as one ternary operation: it computes the value (as if) to infinite precision and rounds once to the result format, according to the current rounding mode. is a version of it takes arguments and returns a result. is a version of it takes arguments and returns a result. is an version of it takes arguments and returns an result. is equivalent to on HP-UX systems. The and macros are defined in indicating that are each as fast as a multiply and add. USAGE
These functions are available only for Integrity servers. To use these functions, compile either with the default option or with the and options. To use or compile also with the option. To use these functions, make sure your program includes Link in the math library by specifying on the compiler or linker command line. RETURN VALUE
If one of x and y is infinite, the other is zero, and z is a NaN, returns NaN and optionally raises the invalid exception. If one of x and y is infinite, the other is zero, and z is not a NaN, returns NaN and raises the invalid exception. If x times y is an exact infinity and z is also an infinity but with the opposite sign, returns NaN and raises the invalid exception. returns a properly signed infinity in lieu of a value whose magnitude is too large, and raise the overflow and inexact exceptions. raises the underflow and inexact exceptions whenever a result is tiny (essentially denormal or zero) and thereby suffers loss of accuracy, and may raise those exceptions if the result is merely tiny. raises the inexact exception whenever a rounded result does not equal the mathematical result. ERRORS
No errors are defined. SEE ALSO
math(5). STANDARDS CONFORMANCE
: ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'') HP Integrity Server Only fma(3M)

Check Out this Related Man Page

fmad64(3M)																fmad64(3M)

NAME
fmad64(), fmad128(), fmad32() - decimal floating multiply-add functions SYNOPSIS
DESCRIPTION
The function returns (x*y) + z, rounded as one ternary operation: it computes the value (as if) to infinite precision and rounds once to the result format, according to the current (decimal) rounding mode. is a version of it takes arguments and returns a result. is a version of it takes arguments and returns a result. These math functions are supported for HP-UX 11i Version 3 September 2008 Update and forward. USAGE
To use any of these functions, compile with the option. Make sure your program defines and then includes Link in the math library by specifying or on the linking command line. For more information, see the at the following site: RETURN VALUE
If x, y, or z is NaN, returns NaN. If one of x and y is infinite, the other is zero, and z is not NaN, returns NaN and raises the invalid exception. If x times y is an exact infinity and z is also an infinity but with the opposite sign, returns NaN and raises the invalid exception. returns the properly signed infinity (or, in some non-default rounding direction modes, the properly signed maximum-magnitude finite num- ber) in lieu of a value whose magnitude is too large, and raises the overflow and inexact exceptions. raises the underflow exception whenever a result is tiny (essentially subnormal or zero) and inexact. raises the inexact exception whenever a rounded result does not equal the mathematical result. ERRORS
If one of x and y is infinite, the other is zero, and z is not NaN, sets to If x times y is an exact infinity and z is also an infinity but with the opposite sign, sets to If the correct value would overflow, sets to SEE ALSO
math(5). STANDARDS CONFORMANCE
These functions conform to ISO/IEC TR 24732, "Extension for the programming language C to support decimal floating-point arithmetic". HP Integrity Server Only fmad64(3M)
Man Page