Mercurial > hg > CbC > CbC_gcc
diff gcc/ebitmap.c @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | b7f97abdc517 |
line wrap: on
line diff
--- a/gcc/ebitmap.c Sun Feb 07 18:28:00 2010 +0900 +++ b/gcc/ebitmap.c Fri Feb 12 23:39:51 2010 +0900 @@ -88,7 +88,7 @@ unsigned int i = 0; ebitmap_iterator ebi; bool foundbit = false; - + /* This is not the fastest way to do this, we could simply look for the popcount, and start there, but this function is not used anywhere speed critical. */ @@ -96,7 +96,7 @@ { foundbit = true; } - + if (foundbit) return i; @@ -176,7 +176,7 @@ static inline void ebitmap_array_clear (ebitmap map) { - if (map->elts) + if (map->elts) { free (map->elts); map->elts = NULL; @@ -225,7 +225,7 @@ unsigned int bitindex, shift; bool have_eltwordindex = false; EBITMAP_ELT_TYPE *elt_ptr; - + /* If the bit can't exist in our bitmap, just return. */ if (map->numwords == 0) return; @@ -233,7 +233,7 @@ if (wordindex >= map->wordmask->n_bits || !TEST_BIT (map->wordmask, wordindex)) return; - + if (map->cache != NULL && map->cacheindex == wordindex) elt_ptr = map->cache; else @@ -242,10 +242,10 @@ elt_ptr = &map->elts[eltwordindex]; have_eltwordindex = true; } - + bitindex = bit % EBITMAP_ELT_BITS; shift = bitindex; - + *(elt_ptr) &= ~(((EBITMAP_ELT_TYPE)1) << shift); /* Clear out the empty words. */ @@ -253,7 +253,7 @@ { if (!have_eltwordindex) eltwordindex = sbitmap_popcount (map->wordmask, wordindex); - + if (map->cache != NULL && map->cacheindex == eltwordindex) map->cache = NULL;