aboutsummaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2012-06-17 21:01:25 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2012-06-17 21:01:25 +0000
commit46d33ae927892aa2fbec97dfa90f7bd9a055a1bb (patch)
treea4d54b10f7c0db155dd485fd849fee5c27f1b77c /gcc/expmed.c
parent0df965d73f62798d8b9288a27c351502edbb1831 (diff)
downloadgcc-46d33ae927892aa2fbec97dfa90f7bd9a055a1bb.zip
gcc-46d33ae927892aa2fbec97dfa90f7bd9a055a1bb.tar.gz
gcc-46d33ae927892aa2fbec97dfa90f7bd9a055a1bb.tar.bz2
expmed.c (ceil_log2): Move from here...
* expmed.c (ceil_log2): Move from here... * hwint.c: ... to here for older GCCs... * hwint.h: ... and here for newer GCCs. * rtl.h (ceil_log2): Remove prototype. * tree-phinodes.c: Do not include rtl.h. * Makefile.in (tree-phinodes.o): Do not depend on RTL_H. From-SVN: r188710
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index b456bac..9f5f6a2 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -3267,14 +3267,6 @@ expand_widening_mult (enum machine_mode mode, rtx op0, rtx op1, rtx target,
unsignedp, OPTAB_LIB_WIDEN);
}
-/* Return the smallest n such that 2**n >= X. */
-
-int
-ceil_log2 (unsigned HOST_WIDE_INT x)
-{
- return floor_log2 (x - 1) + 1;
-}
-
/* Choose a minimal N + 1 bit approximation to 1/D that can be used to
replace division by D, and put the least significant N bits of the result
in *MULTIPLIER_PTR and return the most significant bit.