Mercurial > hg > CbC > CbC_gcc
comparison gcc/sbitmap.h @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* Simple bitmaps. | 1 /* Simple bitmaps. |
2 Copyright (C) 1999-2017 Free Software Foundation, Inc. | 2 Copyright (C) 1999-2018 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GCC. | 4 This file is part of GCC. |
5 | 5 |
6 GCC is free software; you can redistribute it and/or modify it under | 6 GCC is free software; you can redistribute it and/or modify it under |
7 the terms of the GNU General Public License as published by the Free | 7 the terms of the GNU General Public License as published by the Free |
169 | 169 |
170 static inline void | 170 static inline void |
171 bmp_iter_set_init (sbitmap_iterator *i, const_sbitmap bmp, | 171 bmp_iter_set_init (sbitmap_iterator *i, const_sbitmap bmp, |
172 unsigned int min, unsigned *bit_no ATTRIBUTE_UNUSED) | 172 unsigned int min, unsigned *bit_no ATTRIBUTE_UNUSED) |
173 { | 173 { |
174 bitmap_check_index (bmp, min); | |
175 | |
176 i->word_num = min / (unsigned int) SBITMAP_ELT_BITS; | 174 i->word_num = min / (unsigned int) SBITMAP_ELT_BITS; |
177 i->bit_num = min; | 175 i->bit_num = min; |
178 i->size = bmp->size; | 176 i->size = bmp->size; |
179 i->ptr = bmp->elms; | 177 i->ptr = bmp->elms; |
180 | 178 |