diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-15 11:39:52 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-15 11:39:52 +0000 |
commit | eb7e53de7b0020468ed3461e1545eae635d4ffe1 (patch) | |
tree | 18e509006bd9fc9d9db00f9058fc2e4c3bad8377 /gcc/double-int.c | |
parent | a66c9777da9b8fe0739899f59dfe7bb8443ffdd4 (diff) | |
download | gcc-eb7e53de7b0020468ed3461e1545eae635d4ffe1.tar.gz |
2012-08-15 Richard Guenther <rguenther@suse.de>
* double-int.h (double_int::from_unsigned): Rename to ...
(double_int::from_uhwi): ... this.
(double_int::from_signed): Rename to ...
(double_int::from_shwi): ... this.
(double_int::to_signed): Rename to ...
(double_int::to_shwi): ... this.
(double_int::to_unsigned): Rename to ...
(double_int::to_uhwi): ... this.
(double_int::fits_unsigned): Rename to ...
(double_int::fits_uhwi): ... this.
(double_int::fits_signed): Rename to ...
(double_int::fits_shwi): ... this.
(double_int::fits): Rename to ...
(double_int::fits_hwi): ... this.
* double-int.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190410 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/double-int.c')
-rw-r--r-- | gcc/double-int.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/double-int.c b/gcc/double-int.c index 2f48f2b3049..3a22d15f08c 100644 --- a/gcc/double-int.c +++ b/gcc/double-int.c @@ -716,7 +716,7 @@ double_int::sext (unsigned prec) const /* Returns true if CST fits in signed HOST_WIDE_INT. */ bool -double_int::fits_signed () const +double_int::fits_shwi () const { const double_int &cst = *this; if (cst.high == 0) @@ -731,12 +731,12 @@ double_int::fits_signed () const unsigned HOST_WIDE_INT if UNS is true. */ bool -double_int::fits (bool uns) const +double_int::fits_hwi (bool uns) const { if (uns) - return this->fits_unsigned (); + return this->fits_uhwi (); else - return this->fits_signed (); + return this->fits_shwi (); } /* Returns A * B. */ |