Computer Hardware User's Guide
Rounding (RND Instruction)
5-40
Figure 5–19. Flowchart for Floating-Point Rounding by the RND Instruction
Test for special cases of
c
(
man
)
c
(
exp
) = –128
c
(
man
) = 0
Test for special cases of
c
(
exp
)
c
(
exp
) overflow
c
(
exp
) in range
Set eight LSBs of
c
(
man
) to 0
c
= rnd(α)
c
(
man
) =
c
(
man
) < < 1
c
(
exp
) = α(
exp
) + 1
α
If
c
(
man
) > 0,
set
c
to most positive
single-precision value
If
c
(
man
) < 0,
set
c
to most negative
single-precision value
Overflow of
c
(
man
)
Add α(
man
) and 1/2 of LSB
c
(
man
) = α(
man
) + 2
–24
1 × 2
α(
exp
) –24
No special case