BOOTSTRAP (klibm) functions


LIBRARY ROUTINE

kfrexp - compute significand and exponent of argument

LIBRARY CALL

double kfrexp(
double v,
int *e)

INPUT

OUTPUT

RETURN VALUE

the significand of the input argument, or zero if the input argument is zero.

DESCRIPTION

The kfrexp function computes the significand (or mantissa) of v as a double quantity between 0.5 and 1.0 and stores the exponent in the output argument e.

This is provided in all POSIX and X/OPEN compliant C math libraries. Currently kfrexp is simply a macro to frexp because Khoros does not run on any machine whose math library does not include this function. If Khoros is ported to a machine without this function then a replacement will be written.

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.