Lines Matching refs:i
26 bool Get(int i) const { return n & (1 << i); } in Get()
27 void Set0(int i) { n &= ~(1 << i); } in Set0()
28 void Set1(int i) { n |= (1 << i); } in Set1()
56 int i = 31 - clz; in Allocate() local
57 m_N.Set0(i); in Allocate()
58 return i; in Allocate()
63 void Deallocate(int i) in Deallocate() argument
65 if (m_N.Get(i)) in Deallocate()
69 m_N.Set1(i); in Deallocate()
82 for (int i = 0; i < n; ++i) in BitsAllocatorBase() local
86 bits[i].Initialize(size); in BitsAllocatorBase()
91 bits[i].Initialize(32); in BitsAllocatorBase()
100 for (int i = 0; i < n; ++i) in AllocateImpl() local
102 int j = bits[i].Allocate(); in AllocateImpl()
105 return i * 32 + j; in AllocateImpl()
111 void DeallocateImpl(Bit32Allocator* bits, int i) in DeallocateImpl() argument
113 bits[i / 32].Deallocate(i % 32); in DeallocateImpl()
126 void Deallocate(int i) { BitsAllocatorBase::DeallocateImpl(m_Bits, i); } in Deallocate() argument