bugAVR C Runtime Library - Bugs: bug #15266, Function ldexp incorrectly...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #15266: Function ldexp incorrectly processes overflow and underflow cases.

Submitter:  Anatoly Sokolov <aesok>
Submitted:  Wed 21 Dec 2005 11:06:52 PM UTC
   
 
Category:  Library Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Percent Complete:  0% Open/Closed:  Closed
Release:  None Fixed Release:  None

Wed 21 Dec 2005 11:06:52 PM UTC, original submission:  

r = ldexp(3.0e38, 1); // r = NAN should be +Inf
r = ldexp(3.0e38, 2); // r = 0 should be +Inf
r = ldexp(3.0e38, 3); // r = 2.0726805E-038 should be +Inf
...

r = ldexp(-3.0e38, 1); // r = -NAN should be -Inf
r = ldexp(-3.0e38, 2); // r = 0 should be -Inf
r = ldexp(-3.0e38, 3); // r = 2.0726805E-038 should be -Inf
...

r = ldexp(3.0e-39, -1); // r = 0: OK
r = ldexp(3.0e-39, -2); // r = 8.6844086E+037 should be 0
r = ldexp(3.0e-39, -3); // r = 4.3422043E+037 should be 0
...

Anatoly Sokolov <aesok>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-01-02 aesok StatusReady For Test Fixed
    Assigned toaesok None
    Open/ClosedOpen Closed
2005-12-25 aesok StatusNone Ready For Test
    Assigned toNone aesok

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code