FMADD(A, X, Y)

Purpose

Floating-point Multiply and Add

Returns the result of a floating-point multiply-add.

Class

Function

Argument Type and Attributes

A
can be of type REAL(4) or REAL(8).

X
must be of the same type and kind type parameter as A.

Y
must be of the same type and kind type parameter as A.

Result Type and Attributes

Same as A, X, and Y.

Result Value

The result has a value equal to A*X + Y.

Examples

The following example is only valid if compiled with the -qarch option because A, B, C and RES1 are single precision reals.

       REAL(4) :: A, B, C, RES1
       REAL(8) :: D, E, F, RES2
 
       RES1 = FMADD(A, B, C)
       RES2 = FMADD(D, E, F)
       END
IBM Copyright 2003