TOMS722 - IEEE Arithmetic Support
TOMS722 is a set of C routines that support IEEE arithmetic.
Both single and double precision routines are supplied.
The original, correct and authentic copies of the source code
are available from the TOMS subdirectory of
NETLIB.
-
Reference:
-
W J Cody and J T Coonen,
Algorithm 722: Routines to Support IEEE Binary Floating Point
Arithmetic;
ACM Transactions on Mathematical Software,
Volume 19, Number 4.
Files you may copy include:
The list of single precision routines includes:
-
COPYSIGN_F returns the first argument with the sign of
the second.
-
FINITE_F returns true (1) if its argument is finite, and
false (0) otherwise.
-
ISNAN_F returns true (1) if its argument is NaN, and
false (0) otherwise.
-
LOGB_F returns the exponent of a real number.
-
MACHAR_S computes machine constants for floating point
arithmetic.
-
SCALB_F returns ARG * 2 ** N.
-
TEST_F returns its input argument.
Back to the C software page.
Last revised on 16 November 2001.