cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ] #include <mathcw.h> extern float setxpf (float x, int n); extern double setxp (double x, int n); extern long double setxpl (long double x, int n); extern __float80 setxpw (__float80 x, int n); extern __float128 setxpq (__float128 x, int n); extern long_long_double setxpll (long_long_double x, int n); extern decimal_float setxpdf (decimal_float x, int n); extern decimal_double setxpd (decimal_double x, int n); extern decimal_long_double setxpdl (decimal_long_double x, int n); extern decimal_long_long_double setxpdll (decimal_long_long_double x, int n);
NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.
The argument must be finite and nonzero, and the result must neither overflow nor underflow, but checks to ensure that are intentionally omitted.
These functions are intended primarily for internal use in the mathcw library. User code should use the Standard C function ldexp() instead.