From a5f4d3d6a1379ad4a806e65b2fc7ac86bbaf72ae Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 30 Aug 2018 14:58:42 +0200 Subject: sreal.h (SREAL_PART_BITS): Change to 31; remove seemingly unnecessary comment that it has to be even number. * sreal.h (SREAL_PART_BITS): Change to 31; remove seemingly unnecessary comment that it has to be even number. (class sreal): Change m_sig type to int32_t. * sreal.c (sreal::dump, sreal::to_int, opreator+, operator-): Use int64_t for temporary calculations. (sreal_verify_basics): Drop one bit from minimum and maximum. From-SVN: r263981 --- gcc/sreal.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gcc/sreal.h') diff --git a/gcc/sreal.h b/gcc/sreal.h index 6f841cf..e2ad1a3 100644 --- a/gcc/sreal.h +++ b/gcc/sreal.h @@ -20,8 +20,7 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_SREAL_H #define GCC_SREAL_H -/* SREAL_PART_BITS has to be an even number. */ -#define SREAL_PART_BITS 32 +#define SREAL_PART_BITS 31 #define UINT64_BITS 64 @@ -137,7 +136,7 @@ private: static sreal signedless_plus (const sreal &a, const sreal &b, bool negative); static sreal signedless_minus (const sreal &a, const sreal &b, bool negative); - int64_t m_sig; /* Significant. */ + int32_t m_sig; /* Significant. */ signed int m_exp; /* Exponent. */ }; -- cgit v1.1