From e8260a3e84dc08b944cdc5ed02467aa967ded722 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 7 Jul 2019 07:12:14 +0100 Subject: [PATCH] add enough to "extra" exponent to cover FP64 to FP16 fcvt --- src/ieee754/fpcommon/fpbase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ieee754/fpcommon/fpbase.py b/src/ieee754/fpcommon/fpbase.py index 2ef543d4..0e057f9e 100644 --- a/src/ieee754/fpcommon/fpbase.py +++ b/src/ieee754/fpcommon/fpbase.py @@ -77,7 +77,7 @@ class FPNumBaseRecord: else: self.m_extra = 0 if e_extra: - self.e_extra = 3 + self.e_extra = 6 # enough to cover FP64 when converting to FP16 e_width += self.e_extra else: self.e_extra = 0 -- 2.30.2