Appendix
0
D.1
Single-Precision
Floating-Point
Format
0-2
The single-precision
floating-point
format supported by the
TMS34010
C
floating-point
RTS
is
a
32-bit
format: a sign bit,
an
8-bit
biased exponent, and
a
23-bit
mantissa. The three component fields
are
positioned in the
32-bit
field format
as
follows:
3130
2322
o
lsi
EXP
I
MANTISSA
MSB
LSB
Figure
0-1.
Single-Precision
Floating
Point
Format
Hence, the sign
is
in
bit
31
of
the
32-bit
field, the exponent resides
in
bits 23
through
30, and the mantissa in bits 0 through 22.
Given a sign
bit
s,
an
exponent
e,
and a mantissa
f,
then the value V
of
the
floating
point
number X=(s,e,f)
is
as
follows:
•
If
s = 0, e = 255, and f = 0, then V =
+infinity
•
If
s = 1, e = 255, and f = 0, then V =
-infinity
•
If
0 < e < 255 and f
'"
0, then V = (_1)s*2
e
-
127
(.f)
( V
=
Not
Valid
if
the number X=(s,e,f)
is
not
a normalized floating
point
number.
See
Floating Point Arithmetic, Rounding, and Normalization,
page D-4.)
•
If
s = 0, e = 0, and f = 0, then V = 0
•
For all other cases, V =
Not
Valid
Precision in the single-precision format
is
greater than six decimal digits and
the range
includes the
following:
• 5.87747 x
10-
39
to
1.70141 x
10
38
(positive range)
(5.87747 E-39
to
1.70141 E38, in C format)
• -1.70141 *
10
38
to
-5.87747 *
10-
39
(negative range)
(-1.70141 E38
to
-5.87747 E-39, in C format)
• 0 (zero)
• +
/-
infinity