Developer Guide and Reference

Contents

Miscellaneous 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 miscellaneous functions:

copysign

Description:
The
copysign
function returns the value with the magnitude of
x
and the sign of
y
.
Calling interface:
double copysign(double x, double y);
long double copysignl(long double x, long double y);
float copysignf(float x, float y);

fabs

Description:
The
fabs
function returns the absolute value of
x
.
Calling interface:
double fabs(double x);
long double fabsl(long double x);
float fabsf(float x);

fdim

Description:
The
fdim
function returns the positive difference value,
x-y
(for
x > y
) or +0 (for
x <= to y
).
errno
: ERANGE, for overflow conditions
Calling interface:
double fdim(double x, double y);
long double fdiml(long double x, long double y);
float fdimf(float x, float y);

finite

Description:
The
finite
function returns 1 if
x
is not a
NaN
or +/- infinity. Otherwise
0
is returned.
Calling interface:
int finite(double x);
int finitel(long double x);
int finitef(float x);

fma

Description:
The