Texas Instruments TMS320C3x 사용자 설명서

다운로드
페이지 757
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(
α
)