Texas-instruments TMS320C3x Instrukcja Użytkownika Strona 148

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 757
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 147
Integer to Floating-Point Conversion (FLOAT Instruction)
5-43
Data Formats and Floating-Point Operation
5.10 Integer to Floating-Point Conversion (FLOAT Instruction)
Integer to floating-point conversion, using the FLOAT instruction, allows
single-precision integers to be converted to extended-precision floating-point
numbers. The flowchart for this conversion is shown in Figure 5–21.
Figure 5–21. Flowchart for Integer to Floating-Point Conversion by FLOAT Instruction
Test for special cases of
c
(
man
)
c
(
exp
) = –128
c
(
man
) = 0
Leading nonsignificant
sign bits
Set
c
to final result
c
= float (α)
c
(
man
) =
c
(
man
) < < k
c
(
exp
) = 30 –k
k = # leading
nonsignificant
sign bits
α
Remove most significant nonsign bit
c
(
man
) = α
c
(
exp
) = 30
Przeglądanie stron 147
1 2 ... 143 144 145 146 147 148 149 150 151 152 153 ... 756 757

Komentarze do niniejszej Instrukcji

Brak uwag