sqrtf4_fast

NAME

sqrtf4_fast - return approximate square root of float elements

SYNOPSIS

Procedure call syntax:

#include <simdmath.h>
vector float sqrtf4_fast(vector float x);
Link with -lsimdmath

Inline call syntax:

#include <simdmath.h>
#include <sqrtf4.h>
vector float _sqrtf4_fast(vector float x);
Parameters  
x input vector

DESCRIPTION

The sqrtf4_fast function computes the square roots of the elements of the input vectors.

The values returned are up to 3 ULP (units of least position) off over the input range [1.0,3.99999...]. This is the default implementation and has a histogram of error of:
ULP Error Count
-3 0
-2 68
0 5985155
1 8611186
2 1752588
3 43324

RETURN VALUE

The function sqrtf4_fast returns a float vector in which each element is defined as sqrt(x).

ENVIRONMENT

SPU only

CONFORMING TO

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

NOTES

Basis

ISO9899 (C99) sqrt functions.

SEE ALSO

sqrt(3), sqrtf4(3), sqrtd2(3), exp(3), expf4(3), expd2(3), exp2(3), exp2f4(3), exp2d2(3), expm1(3), expm1f4(3), expm1d2(3), frexp(3), frexpf4(3), frexpd2(3), ldexp(3), ldexpf4(3), ldexpd2(3), pow(3), powf4(3), powd2(3), hypot(3), hypotd2(3), hypotf4(3), cbrt(3), cbrtf4(3), cbrtd2(3), log(3), logf4(3), logd2(3), log10(3), log2f4(3), log2d2(3), log1p(3), log10f4(3), log10d2(3), logb(3), log1pf4(3), log1pd2(3), ilogb(3), logbf4(3), scalbn(3), ilogbf4(3), ilogbd2(3)