aboutsummaryrefslogtreecommitdiff
path: root/gcc/sreal.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2018-08-30 14:58:42 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2018-08-30 12:58:42 +0000
commita5f4d3d6a1379ad4a806e65b2fc7ac86bbaf72ae (patch)
tree36987055a6347d3f684dd6e9707d49cf4a97dd2b /gcc/sreal.h
parentb1d5f644929182de05cf2bb940a6c417ec28f29a (diff)
downloadgcc-a5f4d3d6a1379ad4a806e65b2fc7ac86bbaf72ae.zip
gcc-a5f4d3d6a1379ad4a806e65b2fc7ac86bbaf72ae.tar.gz
gcc-a5f4d3d6a1379ad4a806e65b2fc7ac86bbaf72ae.tar.bz2
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
Diffstat (limited to 'gcc/sreal.h')
-rw-r--r--gcc/sreal.h5
1 files changed, 2 insertions, 3 deletions
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. */
};