__fmac (Windows CE 5.0)
Multiplies two float values and add to a third float value.
Float __fmac( float i, float j, float k);
Parameters
- i
[in] First operand of the multiplication operation. - j
[in] Second operand of the multiplication operation. - k
[in] Value to which the product of i and j is added.
Return Values
The sum of the product of i and j with k.
Remarks
The following code example shows how to use _fmac.
/***********************************************************/
#include <stdio.h>
#include <shintr.h>
void main()
{
int i;
float sum=0;
float v1[4] = {2.0, 2.0, 2.0, 2.0};
float v2[4] = {8.0, 8.0, 8.0, 8.0};
for (i = 0; i < 4; i++)
sum = __fmac(v1[i], v2[i], sum);
printf("sum = %f\n", sum);
}
This example results in the following output.
sum = 64.000000
Requirements
Header: shintr.h.
See Also
Intrinsic Functions for Renesas Microprocessors
Send Feedback on this topic to the authors