diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-12-16 20:59:56 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-12-16 19:59:56 +0000 |
commit | 931977d9191b542c356d2dfa3258c8d09a6b8498 (patch) | |
tree | 7517b4a73e11c8c28d9049721a6ee6d367b9c7ba /gcc/hwint.c | |
parent | 203c7ebffdd7042d9b08d303594eaeb9887ff503 (diff) | |
download | gcc-931977d9191b542c356d2dfa3258c8d09a6b8498.zip gcc-931977d9191b542c356d2dfa3258c8d09a6b8498.tar.gz gcc-931977d9191b542c356d2dfa3258c8d09a6b8498.tar.bz2 |
hwint.c (abs_hwi, absu_hwi): Move to ...
* hwint.c (abs_hwi, absu_hwi): Move to ...
* hwint.h (abs_hwi, absu_hwi): ... here; make inline.
From-SVN: r218791
Diffstat (limited to 'gcc/hwint.c')
-rw-r--r-- | gcc/hwint.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/hwint.c b/gcc/hwint.c index 9d0569b..405118e 100644 --- a/gcc/hwint.c +++ b/gcc/hwint.c @@ -124,22 +124,6 @@ popcount_hwi (unsigned HOST_WIDE_INT x) #endif /* GCC_VERSION < 3004 */ -/* Compute the absolute value of X. */ - -HOST_WIDE_INT -abs_hwi (HOST_WIDE_INT x) -{ - gcc_checking_assert (x != HOST_WIDE_INT_MIN); - return x >= 0 ? x : -x; -} - -/* Compute the absolute value of X as an unsigned type. */ - -unsigned HOST_WIDE_INT -absu_hwi (HOST_WIDE_INT x) -{ - return x >= 0 ? (unsigned HOST_WIDE_INT)x : -(unsigned HOST_WIDE_INT)x; -} /* Compute the greatest common divisor of two numbers A and B using Euclid's algorithm. */ |