fmodf4_fast

NAME

fmodf4_fast - return approximate remainders from division of float elements

SYNOPSIS

Procedure call syntax:

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

Inline call syntax:

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

DESCRIPTION

The fmodf4 function computes the remainders of dividing x by y. The return values are x - n*y, where n are the quotients of x/y, rounded towards zero.

On the SPU, there are two implementations available:
  • fmodf4 provides computation on all IEEE floating point values (excluding floating overflow or underflow).
  • fmodf4_fast provides computation on all floating-point x/y values in the 32-bit signed integer range. Values outside this range get clamped.

RETURN VALUE

The functions fmodf4 and fmodf4_fast return float vectors in which each element is defined as the remainder of x/y for the corresponding elements of x and y.

ENVIRONMENT

fmodf4_fast: SPU only

CONFORMING TO

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

NOTES

Basis

ISO9899 (C99) fmod functions.

SEE ALSO

fmod(3), fmodf4(3), fmodd2(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), remainder(3), remainderf4(3), remainderd2(3), remquo(3) , remquof4(3), remquod2(3), recip(3), recipf4(3), recipd2(3), rsqrt(3), rsqrtf4(3), rsqrtd2(3)