diff options
Diffstat (limited to 'gcc/sreal.h')
-rw-r--r-- | gcc/sreal.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/sreal.h b/gcc/sreal.h index edf02f1..ce9cdbb 100644 --- a/gcc/sreal.h +++ b/gcc/sreal.h @@ -104,14 +104,20 @@ public: /* Global minimum sreal can hold. */ inline static sreal min () { - static sreal min = sreal (-SREAL_MAX_SIG, SREAL_MAX_EXP); + sreal min; + /* This never needs normalization. */ + min.m_sig = -SREAL_MAX_SIG; + min.m_exp = SREAL_MAX_EXP; return min; } /* Global minimum sreal can hold. */ inline static sreal max () { - static sreal max = sreal (SREAL_MAX_SIG, SREAL_MAX_EXP); + sreal max; + /* This never needs normalization. */ + max.m_sig = SREAL_MAX_SIG; + max.m_exp = SREAL_MAX_EXP; return max; } |