ADX 3CW "09 March 2006" "mathcw-1.00"

Table of contents


NAME

adxf, adx, adxl, adxw, adxq, adxll, adxdf, adxd, adxdl, adxdll - augment integer exponent

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>

extern float adxf (float x, int n);

extern double adx (double x, int n);

extern long double adxl (long double x, int n);

extern __float80 adxw (__float80 x, int n);

extern __float128 adxq (__float128 x, int n);

extern long_long_double adxll (long_long_double x, int n);

extern decimal_float adxdf (decimal_float x, int n);

extern decimal_double adxd (decimal_double x, int n);

extern decimal_long_double adxdl (decimal_long_double x, int n);

extern decimal_long_long_double adxdll (decimal_long_long_double x, int n);

NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.


DESCRIPTION

Compute the result of increasing the floating-point exponent of x by n, thus scaling x by the n-th power of the base. This operation is valid only for nonzero x and when the result neither underflows nor overflows.

These functions are intended primarily for internal use in the mathcw library. User code should use the Standard C function ldexp() instead.


RETURN VALUES

Return the scaled result.

ERRORS

None.

SEE ALSO

frexp(3CW), intxp(3CW), ldexp(3CW), setxp(3CW).