Texas Instruments TMS320C3x User Manual

Page 147

Advertising
background image

Floating-Point to Integer Conversion (FIX Instruction)

5-42

Figure 5–20. Flowchart for Floating-Point to Integer Conversion by FIX Instruction

Test for special cases of

α

(

exp)

α

(

exp) > 30

α

(

exp) in range

rs = 31 –

α

(

exp)

Overflow

Shift

If

α

(

man) > 0,

c = most positive integer

If

α

(

man) < 0,

c = most negative integer

c =

α

(

man) > > rs

Set

c to final result

α

c = fix(

α

)

Advertising