Home
last modified time | relevance | path

Searched refs:bitset (Results 1 – 2 of 2) sorted by relevance

/device/google/contexthub/firmware/src/
Dslab.c26 struct AtomicBitset bitset[0]; member
45 allocator->dataChunks = ((uint8_t*)allocator->bitset) + bitsetSz; in slabAllocatorNew()
46 atomicBitsetInit(allocator->bitset, numItems); in slabAllocatorNew()
59 int32_t itemIdx = atomicBitsetFindClearAndSet(allocator->bitset); in slabAllocatorAlloc()
74 …z) || (itemIdx >= atomicBitsetGetNumBits(allocator->bitset)) || !atomicBitsetGetBit(allocator->bit… in slabAllocatorFree()
77 atomicBitsetClearBit(allocator->bitset, itemIdx); in slabAllocatorFree()
82 if (!atomicBitsetGetBit(allocator->bitset, idx)) in slabAllocatorGetNth()
94 …z) || (itemIdx >= atomicBitsetGetNumBits(allocator->bitset)) || !atomicBitsetGetBit(allocator->bit… in slabAllocatorGetIndex()
102 return atomicBitsetGetNumBits(allocator->bitset); in slabAllocatorGetNumItems()
/device/google/contexthub/util/nanotool/
Dcontexthub.h259 std::bitset<static_cast<int>(SensorType::Max_)> sensor_is_active_;