
90 IRIS WORKSTATION GUIDE
Version 1.0
Appendix E:
In addition, the standard specifies that the user should have control over how
rounding is to occur. The user may opt to round toward nearest, toward zero,
∞ or toward -∞.
Because of the user-control provided, the IEEE standard is quite difficult to
implement and can suffer from unnecessary inefficiency due to the large
number of special cases. The IRIS implementation provides user-control only
over exception conditions. The other modes specified as user-selectable are
implemented as follows:
•
Affine
mapping for infinities is used. In this mode, -∞ < any
number < +∞. (The default specified in the standard is
projective
,
in which infinities compare equal regardless of sign, and do not
compare to other numbers.)
•
Normalizing
mode is used for arithmetic. In this mode,
denormalized numbers are normalized (in extended precision) before
operations are performed on them. The default specified in the
IEEE standard is warning mode, in which NaN is generated when a
denormalized number is used in an arithmetic operation. Warning
mode is not implemented.
•
Rounding to nearest
is implemented using at least seven guard bits.
No sticky bit is used. Directed rounding modes are not
implemented.
The implementation of exception handling is treated in Section E.3.
E.3 The C Floating Point Implementation
IRIS Floating Point Types
The C language specification
2
includes two types for floating point -
float
(single-precision floating point) and
double
. It specifies that both of these types
must be implemented, although they may be synonymous. In some floating
point formats (notably IEEE), conversion between these types is simple,
involving only the addition or removal of mantissa bits. Such conversion can
easily be done in software with in-line code. In the IEEE floating point format,
however, conversion between these types is expensive, as their formats differ
considerably.
Numbers of type
float
in C are perhaps best thought of as abbreviated forms of
the
true
floating point format—
double
. This is seen in the following two rules:
2. Kernighan, B. W. and Ritchie. D.M.
The C Programming Language
, Prentice-Hall, 1978.
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 ...