NAME
rsqrtf4
- return the reciprocals of the square roots of float elements
SYNOPSIS
Procedure
call syntax:
#include <simdmath.h> |
vector float rsqrtf4(vector float x); |
Link with -lsimdmath |
Inline call syntax:
#include <simdmath.h> |
#include <rsqrtf4.h> |
vector float _rsqrtf4(vector float x); |
Parameters |
|
x |
input vector |
DESCRIPTION
The rsqrtf4 function
returns a vector of the reciprocals of the square roots of the corresponding
elements of x.
RETURN VALUE
The function
rsqrtf4 returns
a float vector in which each element is defined as:
- the reciprocal of the square root of the corresponding element of x.
- When an element of x is less than 0:
- on the PPU the result isNaN,
- on the SPU the result is undefined.
- When an element of x is +Inf the result is +0.
- When an element of x is 0 the result is Inf with
the sign of the corresponding element of x.
- When an element of x is NaN the result is NaN.
CONFORMING TO
SIMD Math library
specification for the Cell Broadband Engineā¢ Architecture.
SEE ALSO
rsqrt(3),
rsqrtd2(3), div(3),
divf4(3),
divi4(3),
divu4(3),
divd2(3),
lldivi2(3),
lldivu2(3), fma(3),
fmaf4(3),
fmad2(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)