fmad2

NAME

fmad2 - multiply and add elements of three double vectors

SYNOPSIS

Procedure call syntax:

#include <simdmath.h>
vector double fmad2(vector double x, vector double y, vector double z);
Link with -lsimdmath

Inline call syntax:

#include <simdmath.h>
#include <fmad2.h>
vector double _fmad2(vector double x, vector double y, vector double z);
Parameters  
x,y,z input vectors

DESCRIPTION

The fmad2 function computes (x * y) + z.

RETURN VALUE

The function fmad2 returns a double vector in which each element is defined as (x*y)+z rounded as one ternary operation for each of the corresponding elements of x, y, and z.

ENVIRONMENT

SPU only

CONFORMING TO

SIMD Math library specification for the Cell Broadband Engineā„¢ Architecture.

NOTES

Basis

ISO9899 (C99) fma functions.

SEE ALSO

fma(3), fmaf4(3), div(3), divf4(3), divi4(3), divu4(3), divd2(3), lldivi2(3), lldivu2(3), modf(3), modff4(3), modfd2(3), fmod(3), fmodf4(3), fmodd2(3), remainder(3), remainderf4(3), remainderd2(3), remquo(3) , remquof4(3), remquod2(3), recip(3), recipf4(3), recipd2(3), rsqrt(3), rsqrtf4(3), rsqrtd2(3)