summaryrefslogtreecommitdiff
path: root/cross/avr-gcc/patches/patch-gcc_toplev.h
blob: c3cd951ccaa1efd5f49dd24f6b1c5c2dbf5fdb27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-gcc_toplev.h,v 1.1 2012/11/16 00:38:21 joerg Exp $

--- gcc/toplev.h.orig	2012-11-14 17:06:44.000000000 +0000
+++ gcc/toplev.h
@@ -185,18 +185,6 @@ extern int floor_log2                  (
 #  define CLZ_HWI __builtin_clz
 #  define CTZ_HWI __builtin_ctz
 # endif
-
-extern inline int
-floor_log2 (unsigned HOST_WIDE_INT x)
-{
-  return x ? HOST_BITS_PER_WIDE_INT - 1 - (int) CLZ_HWI (x) : -1;
-}
-
-extern inline int
-exact_log2 (unsigned HOST_WIDE_INT x)
-{
-  return x == (x & -x) && x ? (int) CTZ_HWI (x) : -1;
-}
 #endif /* GCC_VERSION >= 3004 */
 
 /* Functions used to get and set GCC's notion of in what directory