aboutsummaryrefslogtreecommitdiff
path: root/gcc/double-int.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-08-15 11:39:52 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-08-15 11:39:52 +0000
commit6d67b4c74da3e8a09925f5821b6e9df3352f9934 (patch)
tree18e509006bd9fc9d9db00f9058fc2e4c3bad8377 /gcc/double-int.c
parent63ef63bfad608eae22d588156ce1150c993c9bd5 (diff)
downloadgcc-6d67b4c74da3e8a09925f5821b6e9df3352f9934.zip
gcc-6d67b4c74da3e8a09925f5821b6e9df3352f9934.tar.gz
gcc-6d67b4c74da3e8a09925f5821b6e9df3352f9934.tar.bz2
double-int.h (double_int::from_unsigned): Rename to ...
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. From-SVN: r190410
Diffstat (limited to 'gcc/double-int.c')
-rw-r--r--gcc/double-int.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/double-int.c b/gcc/double-int.c
index 2f48f2b..3a22d15 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. */