BOOTSTRAP (klibm) functions


LIBRARY ROUTINE

klog2 - compute the base 2 logarithm of the argument.

LIBRARY CALL

double klog2(double x)

INPUT

OUTPUT

none

RETURN VALUE

the double precision base 2 logarithm of the double precision input argument.

DESCRIPTION

The klog2 function computes the base 2 logarithm of the double precision input argument.

klog2 is not a POSIX function, but is implemented in a few BSD math libraries. If it is implemented for the current architecture in libm.a, then this is simply a macro to log2, otherwise klog2 is a macro to the Khoros portable version of log2.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/klibm/src/klibm.c

SEE ALSO

klibm(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.