Mercurial > hg > CbC > CbC_gcc
comparison gcc/sbitmap.h @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | b7f97abdc517 |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
1 /* Simple bitmaps. | 1 /* Simple bitmaps. |
2 Copyright (C) 1999, 2000, 2002, 2003, 2004, 2006, 2007, 2008 | 2 Copyright (C) 1999, 2000, 2002, 2003, 2004, 2006, 2007, 2008, 2010 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify it under | 7 GCC is free software; you can redistribute it and/or modify it under |
41 unsigned char *popcount; /* Population count. */ | 41 unsigned char *popcount; /* Population count. */ |
42 unsigned int n_bits; /* Number of bits. */ | 42 unsigned int n_bits; /* Number of bits. */ |
43 unsigned int size; /* Size in elements. */ | 43 unsigned int size; /* Size in elements. */ |
44 SBITMAP_ELT_TYPE elms[1]; /* The elements. */ | 44 SBITMAP_ELT_TYPE elms[1]; /* The elements. */ |
45 }; | 45 }; |
46 | |
47 typedef SBITMAP_ELT_TYPE *sbitmap_ptr; | |
48 typedef const SBITMAP_ELT_TYPE *const_sbitmap_ptr; | |
49 | 46 |
50 /* Return the set size needed for N elements. */ | 47 /* Return the set size needed for N elements. */ |
51 #define SBITMAP_SET_SIZE(N) (((N) + SBITMAP_ELT_BITS - 1) / SBITMAP_ELT_BITS) | 48 #define SBITMAP_SET_SIZE(N) (((N) + SBITMAP_ELT_BITS - 1) / SBITMAP_ELT_BITS) |
52 #define SBITMAP_SIZE_BYTES(BITMAP) ((BITMAP)->size * sizeof (SBITMAP_ELT_TYPE)) | 49 #define SBITMAP_SIZE_BYTES(BITMAP) ((BITMAP)->size * sizeof (SBITMAP_ELT_TYPE)) |
53 | 50 |