Commit 47c321d4 by Nathan Sidwell Committed by Nathan Sidwell

bitmap.c (INLINE): Do not define.

	* bitmap.c (INLINE): Do not define.
	(bitmap_elem_to_freelist, bitmap_element_free,
	bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
	bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.

From-SVN: r91168
parent 9c4eeb5d
2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
* bitmap.c (INLINE): Do not define.
(bitmap_elem_to_freelist, bitmap_element_free,
bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
2004-11-24 Kazu Hirata <kazu@cs.umass.edu> 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa-dom.c (cprop_into_successor_phis): Remove code to * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
......
...@@ -29,16 +29,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -29,16 +29,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "ggc.h" #include "ggc.h"
#include "bitmap.h" #include "bitmap.h"
/* Obstack to allocate bitmap elements from. */
#ifndef INLINE
#ifndef __GNUC__
#define INLINE
#else
#define INLINE __inline__
#endif
#endif
/* Global data */ /* Global data */
bitmap_element bitmap_zero_bits; /* An element of all zero bits. */ bitmap_element bitmap_zero_bits; /* An element of all zero bits. */
bitmap_obstack bitmap_default_obstack; /* The default bitmap obstack. */ bitmap_obstack bitmap_default_obstack; /* The default bitmap obstack. */
...@@ -56,7 +46,7 @@ static bitmap_element *bitmap_find_bit (bitmap, unsigned int); ...@@ -56,7 +46,7 @@ static bitmap_element *bitmap_find_bit (bitmap, unsigned int);
/* Add ELEM to the appropriate freelist. */ /* Add ELEM to the appropriate freelist. */
static INLINE void static inline void
bitmap_elem_to_freelist (bitmap head, bitmap_element *elt) bitmap_elem_to_freelist (bitmap head, bitmap_element *elt)
{ {
bitmap_obstack *bit_obstack = head->obstack; bitmap_obstack *bit_obstack = head->obstack;
...@@ -76,7 +66,7 @@ bitmap_elem_to_freelist (bitmap head, bitmap_element *elt) ...@@ -76,7 +66,7 @@ bitmap_elem_to_freelist (bitmap head, bitmap_element *elt)
/* Free a bitmap element. Since these are allocated off the /* Free a bitmap element. Since these are allocated off the
bitmap_obstack, "free" actually means "put onto the freelist". */ bitmap_obstack, "free" actually means "put onto the freelist". */
static INLINE void static inline void
bitmap_element_free (bitmap head, bitmap_element *elt) bitmap_element_free (bitmap head, bitmap_element *elt)
{ {
bitmap_element *next = elt->next; bitmap_element *next = elt->next;
...@@ -104,7 +94,7 @@ bitmap_element_free (bitmap head, bitmap_element *elt) ...@@ -104,7 +94,7 @@ bitmap_element_free (bitmap head, bitmap_element *elt)
/* Allocate a bitmap element. The bits are cleared, but nothing else is. */ /* Allocate a bitmap element. The bits are cleared, but nothing else is. */
static INLINE bitmap_element * static inline bitmap_element *
bitmap_element_allocate (bitmap head) bitmap_element_allocate (bitmap head)
{ {
bitmap_element *element; bitmap_element *element;
...@@ -150,7 +140,7 @@ bitmap_elt_clear_from (bitmap head, bitmap_element *elt) ...@@ -150,7 +140,7 @@ bitmap_elt_clear_from (bitmap head, bitmap_element *elt)
/* Clear a bitmap by freeing the linked list. */ /* Clear a bitmap by freeing the linked list. */
INLINE void inline void
bitmap_clear (bitmap head) bitmap_clear (bitmap head)
{ {
bitmap_element *element, *next; bitmap_element *element, *next;
...@@ -268,7 +258,7 @@ bitmap_malloc_free (bitmap map) ...@@ -268,7 +258,7 @@ bitmap_malloc_free (bitmap map)
/* Return nonzero if all bits in an element are zero. */ /* Return nonzero if all bits in an element are zero. */
static INLINE int static inline int
bitmap_element_zerop (bitmap_element *element) bitmap_element_zerop (bitmap_element *element)
{ {
#if BITMAP_ELEMENT_WORDS == 2 #if BITMAP_ELEMENT_WORDS == 2
...@@ -286,7 +276,7 @@ bitmap_element_zerop (bitmap_element *element) ...@@ -286,7 +276,7 @@ bitmap_element_zerop (bitmap_element *element)
/* Link the bitmap element into the current bitmap linked list. */ /* Link the bitmap element into the current bitmap linked list. */
static INLINE void static inline void
bitmap_element_link (bitmap head, bitmap_element *element) bitmap_element_link (bitmap head, bitmap_element *element)
{ {
unsigned int indx = element->indx; unsigned int indx = element->indx;
...@@ -421,7 +411,7 @@ bitmap_copy (bitmap to, bitmap from) ...@@ -421,7 +411,7 @@ bitmap_copy (bitmap to, bitmap from)
would hold the bitmap's bit to make eventual allocation would hold the bitmap's bit to make eventual allocation
faster. */ faster. */
static INLINE bitmap_element * static inline bitmap_element *
bitmap_find_bit (bitmap head, unsigned int bit) bitmap_find_bit (bitmap head, unsigned int bit)
{ {
bitmap_element *element; bitmap_element *element;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment