92 IRIS WORKSTATION GUIDE
Version 1.0
Appendix E:
• When parameters are passed or expressions are calculated,
float’s
do
not require a conversion. It is the user’s responsibility to guarantee
that the caller and callee agree when intermixing
float
(or
double
) and
long float
.
Long floats
should be used only in instances needing the extra precision.
To aid in the transition from
double
to
long float
, the
verbose
switch (
-v
) may be
used with
cc
. When this switch is used, the C compiler gives a diagnostic
message when it sees the type
double
.
Function Return Values
Functions in the C language specification always return their declared type.
This is the case in the current implementation. The user should exercise
caution when using functions returning floating point values. When IEEE format
is used, mismatching
float
and
long float
between external and actual declarations
will cause an incorrect result. This mismatch may have gone undetected if a
floating point format was previously used in which the two precisions differed
only in the size of the mantissa (as in IEEE format).
Standard C Library Floating Point Routines
Additions have been provided to some standard C library routines to support
this implementation:
• The usual formats,
%f
,
%g
, and
%e
, assume single-precision floating
point. The additional formats
%lf
,
%lg
, and
%le
have been added
for use with long float quantities.
• The usual set of math routines expect (and return) single-precision
floating point quantities. There is an additional set of math routines
that expects double-precision floating point quantities. In most
instances, these routines are named by prefixing the name of the
standard routine with
_l
. Thus,
_lsin
is the double-precision
counterpart of
sin
, etc. The user is urged to include the definitions
file
math.h
in any C program that must use these routines.
Floating Point Exception Handling
With respect to the draft standard, this implementation has the following
characteristics:
• All not-a-numbers are
trapping
not-a-numbers.
• All exceptions as outlined in section 8 of the draft standard are
implemented for single-precision floating point numbers. None of
these exceptions are currently implemented for double-precision
floating point numbers.
Summary of Contents for IRIS Workstation
Page 1: ...IRIS Workstation Guide Version 1 0 Silicon Graphics Inc Mountain View California 94043 ...
Page 6: ...2 IRIS WORKSTATION GUIDE Version 1 0 Introduction ...
Page 24: ...20 IRIS WORKSTATION GUIDE Version 1 0 Hardware Installation ...
Page 30: ...26 IRIS WORKSTATION GUIDE Version 1 0 Operation ...
Page 48: ...44 IRIS WORKSTATION GUIDE Version 1 0 System Administration ...
Page 50: ...46 IRIS WORKSTATION GUIDE Version 1 0 Appendix A ...
Page 74: ...70 IRIS WORKSTATION GUIDE Version 1 0 Appendix B ...
Page 77: ...Version 1 0 IRIS WORKSTATION GUIDE 73 Appendix C e random gr error f wnrepaint ...
Page 78: ...74 IRIS WORKSTATION GUIDE Version 1 0 Appendix C ...
Page 92: ...88 IRIS WORKSTATION GUIDE Version 1 0 Appendix D ...
Page 102: ...98 IRIS WORKSTATION GUIDE Version 1 0 Appendix E ...
Page 103: ...Appendix F Manual Pages ...
Page 104: ......
Page 131: ...Version 1 0 126 IRIS WORKSTATION GUIDE Appendix F ...
Page 132: ......
Page 136: ...130 IRIS WORKSTATION GUIDE Version 1 0 Appendix H ...
Page 152: ...146 IRIS WORKSTATION GUIDE Version 1 0 Appendix J ...