Non-Numbers (Nan) - Hitachi SH7750 Programming Manual

High-performance risc engine superh (sh) 32-bit risc mcu/mpu series
Hide thumbs Also See for SH7750:
Table of Contents

Advertisement

Table 6.2
Floating-Point Ranges
Type
Signaling non-number
Quiet non-number
Positive infinity
Positive normalized
number
Positive denormalized
number
Positive zero
Negative zero
Negative denormalized
number
Negative normalized
number
Negative infinity
Quiet non-number
Signaling non-number
6.2.2

Non-Numbers (NaN)

Figure 6.3 shows the bit pattern of a non-number (NaN). A value is NaN in the following case:
• Sign bit: Don't care
• Exponent field: All bits are 1
• Fraction field: At least one bit is 1
The NaN is a signaling NaN (sNaN) if the MSB of the fraction field is 1, and a quiet NaN (qNaN)
if the MSB is 0.
Single-Precision
H'7FFFFFFF to H'7FC00000
H'7FBFFFFF to H'7F800001
H'7F800000
H'7F7FFFFF to H'00800000
H'007FFFFF to H'00000001
H'00000000
H'80000000
H'80000001 to H'807FFFFF
H'80800000 to H'FF7FFFFF
H'FF800000
H'FF800001 to H'FFBFFFFF
H'FFC00000 to H'FFFFFFFF
Double-Precision
H'7FFFFFFF H'FFFFFFFF to
H'7FF80000 H'00000000
H'7FF7FFFF H'FFFFFFFF to
H'7FF00000 H'00000001
H'7FF00000 H'00000
H'7FEFFFFF H'FFFFFFFF to
H'00100000 H'00000000
H'000FFFFF H'FFFFFFFF to
H'00000000 H'00000001
H'00000000 H'00000000
H'80000000 H'00000000
H'80000000 H'00000001 to
H'800FFFFF H'FFFFFFFF
H'80100000 H'00000000 to
H'FFEFFFFF H'FFFFFFFF
H'FFF00000 H'00000000
H'FFF00000 H'00000001 to
H'FFF7FFFF H'FFFFFFFF
H'FFF80000 H'00000000 to
H'FFFFFFFF H'FFFFFFFF
Rev. 2.0, 03/99, page 119 of 396

Advertisement

Table of Contents
loading

Table of Contents