Texas Instruments TMS320C67X/C67X+ DSP User Manual
Page 71

Overview of IEEE Standard Single- and Double-Precision Formats
3-11
Instruction Set
SPRU733
Figure 3−1 shows the fields of a single-precision floating-point number repre-
sented within a 32-bit register.
Figure 3−1. Single-Precision Floating-Point Fields
31
e
23 22
0
30
s
f
Legend: s
sign bit (0 = positive, 1 = negative)
e
8-bit exponent ( 0 < e < 255)
f
23-bit fraction
0 < f < 1*2
−1
+ 1*2
−2
+ ... + 1*2
−23
or
0 < f < ((2
23
)−1)/(2
23
)
The floating-point fields represent floating-point numbers within two ranges:
normalized (e is between 0 and 255) and denormalized (e is 0). The following
formulas define how to translate the s, e, and f fields into a single-precision
floating-point number.
Normalized:
−1
s
× 2
(e−127)
× 1.f 0 < e < 255
Denormalized (Subnormal):
−1
s
Ч 2
−126
Ч 0.f e = 0; f nonzero
Table 3−4 shows the s,e, and f values for special single-precision floating-
point numbers.
Table 3−4. Special Single-Precision Values
БББББББ
БББББББ
Symbol
БББББ
БББББ
Sign (s)
БББББ
БББББ
Exponent (e)
БББББББББ
БББББББББ
Fraction (f)
БББББББ
БББББББ
+0
БББББ
БББББ
0
БББББ
БББББ
0
БББББББББ
БББББББББ
0
БББББББ
БББББББ
−0
БББББ
БББББ
1
БББББ
БББББ
0
БББББББББ
БББББББББ
0
БББББББ
БББББББ
БББББББ
+Inf
БББББ
БББББ
БББББ
0
БББББ
БББББ
БББББ
255
БББББББББ
БББББББББ
БББББББББ
0
БББББББ
БББББББ
−Inf
БББББ
БББББ
1
БББББ
БББББ
255
БББББББББ
БББББББББ
0
БББББББ
БББББББ
NaN
БББББ
БББББ
x
БББББ
БББББ
255
БББББББББ
БББББББББ
nonzero
БББББББ
БББББББ
БББББББ
QNaN
БББББ
БББББ
БББББ
x
БББББ
БББББ
БББББ
255
БББББББББ
БББББББББ
БББББББББ
1xx..x
БББББББ
БББББББ
SNaN
БББББ
БББББ
x
БББББ
БББББ
255
БББББББББ
БББББББББ
0xx..x and nonzero