Developer Guide and Reference

Contents

Remainder Functions

Many routines in the Intel® Math Library are more optimized for Intel® microprocessors than for non-Intel microprocessors.
The
mathimf.h
header file includes prototypes for Intel® Math Library functions.
The Intel® Math Library supports the following remainder functions:

fmod

Description:
The
fmod
function returns the value
x-n*y
for integer
n
such that if
y
is nonzero, the result has the same sign as
x
and magnitude less than the magnitude of
y
.
errno
: EDOM, for y = 0
Calling interface:
double fmod(double x, double y);
long double fmodl(long double x, long double y);
float fmodf(float x, float y);

remainder

Description:
The
remainder
function returns the value of
x REM y
as required by the IEEE standard.
errno:
EDOM, for y = 0
Calling interface:
double remainder(double x, double y);
long double remainderl(long double x, long double y);
float remainderf(float x, float y);

remquo

Description:
The
remquo
function returns the value of
x REM y
. In the object pointed to by
quo
the function stores a value whose sign is the sign of
x/y
and whose magnitude is congruent modulo 2
n
of the integral quotient of
x/y
.
N
is an implementation-defined integer. For all systems,
N
is equal to 31.
errno:
EDOM, for y = 0
Calling interface:
double remquo(double x, double y, int *quo);
long double remquol(long double x, long double y, int *quo);
float remquof(float x, float y, int *quo);

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804