remainderf4

NAME

remainderf4 - return remainders from division of float elements

SYNOPSIS

Procedure call syntax:

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

Inline call syntax:

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

DESCRIPTION

The remainderf4 function computes the remainder x REM y required by IEC 60559: When y != 0 the remainder r = x REM y is defined regardless of the rounding mode by the mathematical relation r = x - ny, where n is the integer nearest the exact value of x/y; whenever |n - x /y| = 1/2 then n is even. Thus the remainder is always exact. If r = 0 its sign shall be that of x.

RETURN VALUE

The function remainderf4 returns a float vector in which each element is defined as the exact remainder of x/y.

ENVIRONMENT

SPU and PPU

CONFORMING TO

IEC 60559

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

NOTES

Basis

ISO9899 (C99) remainder functions, IEC 60559

SEE ALSO

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