Texas-instruments TMS320C3x Manual do Utilizador Página 145

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 757
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 144
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
Vista de página 144
1 2 ... 140 141 142 143 144 145 146 147 148 149 150 ... 756 757

Comentários a estes Manuais

Sem comentários