X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fsbitmap.h;h=f78e0bf286691aaef94901265d5325482825c08c;hb=25b3bbad6624357c1ac6a31e0be6fca37182fb78;hp=7c00e03902b4f535676d5bc099d8bc2c755adfaf;hpb=ac0ff66f4b7881469a4a569679227e6f83c36630;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/sbitmap.h b/gcc/sbitmap.h index 7c00e03902b..f78e0bf2866 100644 --- a/gcc/sbitmap.h +++ b/gcc/sbitmap.h @@ -1,12 +1,12 @@ /* Simple bitmaps. - Copyright (C) 1999, 2000, 2002, 2003, 2004, 2006, 2007 + Copyright (C) 1999, 2000, 2002, 2003, 2004, 2006, 2007, 2008, 2010 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free -Software Foundation; either version 2, or (at your option) any later +Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY @@ -15,9 +15,8 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with GCC; see the file COPYING. If not, write to the Free -Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301, USA. */ +along with GCC; see the file COPYING3. If not see +. */ #ifndef GCC_SBITMAP_H #define GCC_SBITMAP_H @@ -37,17 +36,13 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA #error Need to increase size of datatype used for popcount #endif -typedef struct simple_bitmap_def +struct simple_bitmap_def { unsigned char *popcount; /* Population count. */ unsigned int n_bits; /* Number of bits. */ unsigned int size; /* Size in elements. */ SBITMAP_ELT_TYPE elms[1]; /* The elements. */ -} *sbitmap; -typedef const struct simple_bitmap_def *const_sbitmap; - -typedef SBITMAP_ELT_TYPE *sbitmap_ptr; -typedef const SBITMAP_ELT_TYPE *const_sbitmap_ptr; +}; /* Return the set size needed for N elements. */ #define SBITMAP_SET_SIZE(N) (((N) + SBITMAP_ELT_BITS - 1) / SBITMAP_ELT_BITS) @@ -220,6 +215,7 @@ extern void sbitmap_copy (sbitmap, const_sbitmap); extern void sbitmap_copy_n (sbitmap, const_sbitmap, unsigned int); extern int sbitmap_equal (const_sbitmap, const_sbitmap); extern bool sbitmap_empty_p (const_sbitmap); +extern bool sbitmap_range_empty_p (const_sbitmap, unsigned int, unsigned int); extern void sbitmap_zero (sbitmap); extern void sbitmap_ones (sbitmap); extern void sbitmap_vector_zero (sbitmap *, unsigned int);