Changes in uspace/lib/c/generic/ieee_double.c [0a520db:f08da1c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ieee_double.c
r0a520db rf08da1c 45 45 const int exponent_bias = 1075; 46 46 47 static_assert(sizeof(val) == sizeof(uint64_t) , "");47 static_assert(sizeof(val) == sizeof(uint64_t)); 48 48 49 49 union { … … 92 92 if (ret.is_denormal) { 93 93 ret.pos_val.significand = raw_significand; 94 ret.pos_val.exponent = 1 - exponent_bias; 94 if (raw_significand == 0) { 95 ret.pos_val.exponent = -exponent_bias; 96 } else { 97 ret.pos_val.exponent = 1 - exponent_bias; 98 } 99 95 100 ret.is_accuracy_step = false; 96 101 } else {
Note:
See TracChangeset
for help on using the changeset viewer.