Changes in uspace/lib/c/generic/ieee_double.c [f08da1c:0a520db] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ieee_double.c
rf08da1c r0a520db 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 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 {
Note:
See TracChangeset
for help on using the changeset viewer.