cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ] #include <mathcw.h> #include <paircw.h> extern void psum2f (float_pair result, float x, float y); extern void psum2 (double_pair result, double x, double y); extern void psum2l (long_double_pair result, long double x, long double y); extern void psum2w (__float80_pair result, __float80 x, __float80 y); extern void psum2q (__float128_pair result, __float128 x, __float128 y); extern void psum2ll (long_long_double_pair result, long_long_double x, long_long_double y); extern void psum2df (decimal_float_pair result, decimal_float x, decimal_float y); extern void psum2d (decimal_double_pair result, decimal_double x, decimal_double y); extern void psum2dl (decimal_long_double_pair result, decimal_long_double x, decimal_long_double y); extern void psum2dll (decimal_long_long_double_pair result, decimal_long_long_double x, decimal_long_long_double y);
NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.
If the magnitude of y is zero, or smaller than that of x by at least a factor of the machine epsilon, it is faster to use pset(3CW).
This function provides a type cast from ordinary scalar floating-point arithmetic to pair-precision arithmetic.