Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

OSS Library Calls (e - f) exp2l(3)
NAME
exp2l - Computes the base-2 exponential function for a long double value
LIBRARY
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
SYNOPSIS
#include <math.h>
long double exp2l(
long double x);
PARAMETERS
x Specifies the power to which the base-2 logarithm is to be raised.
DESCRIPTION
The exp2l() function is a long double version of the exp2( ) function; it takes a long double argu-
ment and returns a long double result.
The exp2l() function computes the base-2 exponential function of x, defined as 2
x
.
NOTES
This function is implemented only for the IEEE_float oating-point option. Applications using
this function cannot be compiled if the specified floating-point option is Tandem_float.
RETURN VALUES
Upon successful completion, exp2l( ) returns the value of the base-2 exponential function of x.
If the value of x is positive or negative zero, 1 is returned.
If the value of x is positive infinity, x is returned. If the value of x is negative infinity, positive
zero is returned.
If the value of x is NaN, NaN is returned.
If the correct value would cause overflow, the exp2l( ) function returns HUGE_VALL and sets
errno to [ERANGE]. If the correct value would cause underflow, the exp2l() function returns a
value of 0.0 (zero) and sets errno to [ERANGE].
ERRORS
If any of the following conditions occurs, the exp2l( ) function sets errno to the corresponding
value:
[ERANGE] The result would cause underflow or overflow.
RELATED INFORMATION
Functions: cbrt(3), exp(3), exp2(3), exp2f(3), expm1(3), log(3), log2(3), pow(3).
Files: math(4).
STANDARDS CONFORMANCE
This function conforms to the ISO/IEC 9899:1999 standard.
This function conforms to the IEEE Std 1003.1, 2004 Edition.
527187-017 Hewlett-Packard Company 227