AVR 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 |
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 | Status | Ready For Test | Fixed | |
Assigned to | aesok | None | |||
Open/Closed | Open | Closed | |||
2005-12-25 | aesok | Status | None | Ready For Test | |
Assigned to | None | aesok |
Powered by Savane 3.13-758e.
Corresponding source code
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
...