Important: The information in this document is obsolete and should not be used for new development.
VectorMultiply
You can use theVectorMultiplyfunction to obtain the dot product of two vectors with 64-bit accuracy.
wide *VectorMultiply(long count, const long *vector1, long step1, const long *vector2, long step2, wide *dot);
count- The size of each vector.
vector1- A pointer to one of the two vectors.
step1- The index increment for the
vector1vector.vector2- A pointer to the second of two vectors.
step2- The index increment for the
vector2 vector.dot- A pointer to the destination of the result.
- function result
- A pointer to the dot product of the two vectors.
DESCRIPTION
TheVectorMultiplyfunction calculates thewidedot product of the parametersvector1andvector2. The size of each vector is given by thecountparameter. The index increment is given by the parametersstep1andstep2, respectively. Thedotparameter points to the destinationwidenumber and is returned as the function result.SEE ALSO
Examples of how to use theVectorMultiplyfunction are provided in the section "Performing Vector Operations" beginning on page 8-29.