Commit 1e94ae22 authored by Matthias Braun's avatar Matthias Braun
Browse files

strcalc: use sc_zero instead of sc_val_from_ulong(0,)

parent 7417cb12
......@@ -134,7 +134,7 @@ static bool normalize(const fp_value *in_val, fp_value *out_val, bool sticky)
/* mantissa all zeros, so zero exponent (because of explicit one) */
if (hsb == ROUNDING_BITS + effective_mantissa) {
sc_val_from_ulong(0, _exp(out_val));
sc_zero(_exp(out_val));
hsb = -1;
}
......@@ -176,7 +176,7 @@ static bool normalize(const fp_value *in_val, fp_value *out_val, bool sticky)
sticky = true;
}
/* denormalized means exponent of zero */
sc_val_from_ulong(0, _exp(out_val));
sc_zero(_exp(out_val));
out_val->clss = FC_SUBNORMAL;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment