aboutsummaryrefslogtreecommitdiffstats
path: root/ieee754b.c
diff options
context:
space:
mode:
Diffstat (limited to 'ieee754b.c')
-rw-r--r--ieee754b.c10
1 files 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); \