|
|
HP-UX Reference > Iilogb(3M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEilogb(), ilogbf(), ilogbl(), ilogbw(), ilogbq() — radix-independent exponent functions DESCRIPTIONThe ilogb() function computes the exponent of the floating point value x. Formally, the return value is the integral part of log base r of |x| as a signed integral value, for nonzero x, where r is the radix of the machine's floating-point arithmetic. The radix r is 2 on HP-UX systems. If x is denormal it is treated as though it were normalized before the exponent is determined. Note: ilogb(x) is equivalent to (int)logb(x) for all values of x except NaN, ±INFINITY, and zero. USAGETo use these functions, compile either with the default -Ae option or with the -Aa and -D_HPUX_SOURCE options. To use (for Itanium-based systems) ilogbw() or ilogbq(), compile also with the -fpwidetypes option. Make sure your program includes <math.h>. Link in the math library by specifying -lm on the compiler or linker command line. For more information, see the HP-UX Floating-Point Guide. |
|