vec_rsqrt

Purpose

Returns a vector that contains a refined approximation of the reciprocal square roots of the corresponding elements of the given vector.

This built-in function is valid only when you include the altivec.h file.

Syntax

d=vec_rsqrt(a)

Result and argument types

The following table describes the types of the returned value and the function arguments.

d a
vector float vector float
vector double vector double

Result value

Each element of the result contains a refined approximation of the reciprocal square root of the corresponding element of a.



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us