divf4_fast

NAME

divf4_fast - fast return quotients of float elements

SYNOPSIS

Procedure call syntax:

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

Inline call syntax:

#include <simdmath.h>
#include <divf4_fast.h>
vector float _divf4_fast(vector float x, vector float y);
Parameters  
x,y input vectors

DESCRIPTION

This functions divides each element of x by the corresponding element of y and returns a vector of the quotients.

Special Cases:
  • If either input is NaN the result is NaN.
  • For Inf/Inf or 0/0 the result is NaN.
  • For finite/0 the result is Inf with sign = sign(x)/sign(y).
  • For finite/Inf the result is 0 with sign = sign(x)/sign(y).
  • On the SPU division by 0 results in a return of HUGE_VALF with sign = sign(x)/sign(y).

RETURN VALUE

The functiondivf4_fast returns a vector containing the quotients produced by dividing each element of x by the corresponding element of y.

ENVIRONMENT

SPU and PPU

CONFORMING TO

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

NOTES

Basis

ISO9899 (C99) div function (divi4).

SEE ALSO

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), rsqrt(3), rsqrtf4(3), rsqrtd2(3)