cleanup: Remove duplicate definitions of is_po2().
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 25 Dec 2012 18:18:46 +0000 (19:18 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 27 Dec 2012 11:58:44 +0000 (12:58 +0100)
attribute.c
type.c

index 78ecc02..40c9009 100644 (file)
@@ -5,6 +5,8 @@
 #include <config.h>
 
 #include <assert.h>
+
+#include "adt/bitfiddle.h"
 #include "adt/strutil.h"
 #include "ast_t.h"
 #include "diagnostic.h"
@@ -158,11 +160,6 @@ type_t *handle_attribute_mode(const attribute_t *attribute, type_t *orig_type)
        return orig_type;
 }
 
-static inline bool is_po2(unsigned x)
-{
-       return (x & (x-1)) == 0;
-}
-
 static void handle_attribute_aligned(const attribute_t *attribute,
                                      entity_t *entity)
 {
diff --git a/type.c b/type.c
index 794c2e3..b49f140 100644 (file)
--- a/type.c
+++ b/type.c
@@ -178,11 +178,6 @@ atomic_type_properties_t pointer_properties = {
        .flags     = ATOMIC_TYPE_FLAG_NONE,
 };
 
-static inline bool is_po2(unsigned x)
-{
-       return (x & (x-1)) == 0;
-}
-
 void init_types(unsigned machine_size)
 {
        obstack_init(&type_obst);