summaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2012-06-17 21:01:25 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2012-06-17 21:01:25 +0000
commitf80de6c27b798006b103299b64959a378490cebe (patch)
treea4d54b10f7c0db155dd485fd849fee5c27f1b77c /gcc/expmed.c
parent6df834069ead41bce52c7f450daf4a5fa6f19b8d (diff)
downloadgcc-f80de6c27b798006b103299b64959a378490cebe.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188710 138bc75d-0d04-0410-961f-82ee72b054a4
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 b456bac177c..9f5f6a207ae 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.