Changeset 9e7406a in mainline
- Timestamp:
- 2019-02-12T19:59:51Z (6 years ago)
- Children:
- 69eaaeee
- Parents:
- 401415a
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-02-12 19:38:33)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-02-12 19:59:51)
- Location:
- uspace/lib/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ieee_double.c
r401415a r9e7406a 92 92 if (ret.is_denormal) { 93 93 ret.pos_val.significand = raw_significand; 94 if (raw_significand == 0) { 95 ret.pos_val.exponent = -exponent_bias; 96 } else { 97 ret.pos_val.exponent = 1 - exponent_bias; 98 } 99 94 ret.pos_val.exponent = 1 - exponent_bias; 100 95 ret.is_accuracy_step = false; 101 96 } else { -
uspace/lib/c/test/ieee_double.c
r401415a r9e7406a 110 110 111 111 PCUT_ASSERT_INT_EQUALS(0, d.pos_val.significand); 112 PCUT_ASSERT_INT_EQUALS(-EXP_BIAS_UNDERFLOWED, d.pos_val.exponent);113 112 } 114 113 … … 127 126 128 127 PCUT_ASSERT_INT_EQUALS(0, d.pos_val.significand); 129 PCUT_ASSERT_INT_EQUALS(-EXP_BIAS_UNDERFLOWED, d.pos_val.exponent);130 128 } 131 129
Note:
See TracChangeset
for help on using the changeset viewer.