kdatatype_cast_output - recommend an appropriate common data type for processing
LIBRARY CALL
int kdatatype_cast_output(
int type1,
int type2)
INPUT
type1 - first data type to be used in
the determination.
type2 - second data type to be used in
the determination.
OUTPUT
none
RETURN VALUE
The recommended data type.
DESCRIPTION
The routine is used to recommend an
appropriate common data type to be used
as when outputing data that is the result
of calculations involving data of the
types indicated in the input arguments.
What this routine does is examine the input
data types for precision, sign, range, etc.
and recommends one of the legal data types
that can be used with minimal risk of
destroying data integrity.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/klibm/src/kdata_type.c
SEE ALSO
klibm(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.