diff options
Diffstat (limited to 'ieee754b.c')
-rw-r--r-- | ieee754b.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -20,12 +20,10 @@ type ieee754b##total##_deserialise(uintmax_t b) \ n = b & BITMASK(nfrac); \ \ if (exp == BITMASK(nexp)) { \ - if (n) { \ - return NAN; \ - } else { \ - return isneg ? -INFINITY : INFINITY; \ - } \ - } else if (exp == 0) { \ + if (n) return NAN; \ + return isneg ? -INFINITY : INFINITY; \ + } \ + if (exp == 0) { \ if (n == 0) \ return isneg ? -0.0 : 0.0; \ exp = -(int)(BITMASK(nexp) / 2 - 1); \ |