OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | 8 |
10 #ifndef SkBitSet_DEFINED | 9 #ifndef SkBitSet_DEFINED |
11 #define SkBitSet_DEFINED | 10 #define SkBitSet_DEFINED |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 uint32_t* internalGet(int index) const { | 79 uint32_t* internalGet(int index) const { |
81 SkASSERT((size_t)index < fBitCount); | 80 SkASSERT((size_t)index < fBitCount); |
82 size_t internalIndex = index / 32; | 81 size_t internalIndex = index / 32; |
83 SkASSERT(internalIndex < fDwordCount); | 82 SkASSERT(internalIndex < fDwordCount); |
84 return reinterpret_cast<uint32_t*>(fBitData.get()) + internalIndex; | 83 return reinterpret_cast<uint32_t*>(fBitData.get()) + internalIndex; |
85 } | 84 } |
86 }; | 85 }; |
87 | 86 |
88 | 87 |
89 #endif | 88 #endif |
OLD | NEW |