Texas-instruments TMS320C3x Bedienungsanleitung Seite 148

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 757
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 147
1 2 ... 143 144 145 146 147 148 149 150 151 152 153 ... 756 757

Kommentare zu diesen Handbüchern

Keine Kommentare