cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ] #include <mathcw.h> extern float ldexpf (float x, int n); extern double ldexp (double x, int n); extern long double ldexpl (long double x, int n); extern __float80 ldexpw (__float80 x, int n); extern __float128 ldexpq (__float128 x, int n); extern long_long_double ldexpll (long_long_double x, int n); extern decimal_float ldexpdf (decimal_float x, int n); extern decimal_double ldexpd (decimal_double x, int n); extern decimal_long_double ldexpdl (decimal_long_double x, int n); extern decimal_long_long_double ldexpdll (decimal_long_long_double x, int n);
NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.
For octal- and hexadecimal-base systems, these functions are not exact unless the power is a multiple of three (octal) or four (hexadecimal). Use the ldexph() or ldexpo() families instead on such systems.
For ldexpdf(), ldexpd(), ldexpdl(), and ldexpdll(), compute the product of the first argument and ten to the power of the second argument exactly.