Rev. 1.50, 10/04, page 98 of 448
6.2 Data
Formats
6.2.1 Floating-Point
Format
A floating-point number consists of the following three fields:
•
Sign bit (s)
•
Exponent field (e)
•
Fraction field (f)
The SH-4A can handle single-precision and double-precision floating-point numbers, using the
formats shown in figures 6.1 and 6.2.
31
s
e
f
30
23 22
0
Figure 6.1 Format of Single-Precision Floating-Point Number
63
s
e
f
62
52
51
0
Figure 6.2 Format of Double-Precision Floating-Point Number
The exponent is expressed in biased form, as follows:
e = E + bias
The range of unbiased exponent E is E
min
– 1 to E
max
+ 1. The two values E
min
– 1 and E
max
+ 1 are
distinguished as follows. E
min
– 1 indicates zero (both positive and negative sign) and a
denormalized number, and E
max
+ 1 indicates positive or negative infinity or a non-number (NaN).
Table 6.1 shows floating-point formats and parameters.
Summary of Contents for SuperH SH-4A
Page 2: ...Rev 1 50 10 04 page ii of xx ...
Page 8: ...Rev 1 50 10 04 page viii of xx ...
Page 116: ...Rev 1 50 10 04 page 96 of 448 ...
Page 178: ...Rev 1 50 10 04 page 158 of 448 ...
Page 206: ...Rev 1 50 10 04 page 186 of 448 ...
Page 231: ...Rev 1 50 10 04 page 211 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 235: ...Rev 1 50 10 04 page 215 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 238: ...Rev 1 50 10 04 page 218 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 408: ...Rev 1 50 10 04 page 388 of 448 Possible Exceptions Inexact Not generated when FPSCR PR 1 ...
Page 446: ...Rev 1 50 10 04 page 426 of 448 ...
Page 468: ...Rev 1 50 10 04 page 448 of 448 ...
Page 471: ......
Page 472: ...SH 4A Software Manual ...