From f38ce04c0ab9b0b4b93ad6d79ce1d9410201611d Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sun, 7 Nov 2021 22:20:38 +0000 Subject: ieee754b.c: small cleanup --- ieee754b.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ieee754b.c b/ieee754b.c index 865f79e..07c92bf 100644 --- a/ieee754b.c +++ b/ieee754b.c @@ -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); \ -- cgit v1.2.3-54-g00ecf