Post Go back to editing

ALU Floating point saturation simple code not working and needs help. I am usimg ADSP21479-EZKIT, VisualDSP++5.1.2


F0=3.402823e38;               // step1
F1=1.0e37;                         // step2
F2=F0+F1;                         // step3
IF AV F2=0x7FFFFFFF;     // step4


I have the above 4 step simple code.

At step3 I have the ASTATx (AV=1) overflow happens.

Now I like to to set the F2 to its maximum value of 0x7FFFFFFF but step4 does not work.

I like to know how I can solve the problem.

Thank you.


I need quick help please.
[edited by: odemirci at 1:26 PM (GMT -4) on 3 Apr 2022]
Parents Reply Children
No Data