Home
last modified time | relevance | path

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

/TwlSDK-5.4/build/libraries/mi/common/src/
Dmi_cache.c85 static void WFSi_TouchCachePages(MICache *cache, u32 head, u32 bitset) in WFSi_TouchCachePages() argument
95 if ((pos < 32) && ((bitset & (1 << pos)) != 0)) in WFSi_TouchCachePages()
97 bitset &= ~(1UL << pos); in WFSi_TouchCachePages()
102 int rest = MATH_CountPopulation(bitset) - cache->invalid_total; in WFSi_TouchCachePages()
125 while (cache->invalid && bitset) in WFSi_TouchCachePages()
128 u32 pos = MATH_CTZ(bitset); in WFSi_TouchCachePages()
136 bitset &= ~(1UL << pos); in WFSi_TouchCachePages()
141 if (bitset) in WFSi_TouchCachePages()
151 MATH_CountPopulation(bitset)); in WFSi_TouchCachePages()
184 u32 bitset = (1UL << pages) - 1UL; in MI_ReadCache() local
[all …]
/TwlSDK-5.4/build/libraries/std/common/src/
Dstd_string.c810 inline static u32 STDi_GetBitset(const u32 *bitset, u32 i) in STDi_GetBitset() argument
814 return ((bitset[pos] >> bit) & 1UL); in STDi_GetBitset()
827 inline static void STDi_SetBitset(u32 *bitset, u32 i) in STDi_SetBitset() argument
831 bitset[pos] |= (1UL << bit); in STDi_SetBitset()
845 static void STDi_FillBitset(u32 *bitset, u32 a, u32 b) in STDi_FillBitset() argument
857 bitset[pos] |= mask; in STDi_FillBitset()
1224 u32 bitset[256 / (8 * sizeof(u32))]; in STD_TVSScanf() local
1228 MI_CpuFill32(bitset, 0x00000000UL, sizeof(bitset)); in STD_TVSScanf()
1237 STDi_SetBitset(bitset, (u8)*fmt); in STD_TVSScanf()
1249 STDi_SetBitset(bitset, from); in STD_TVSScanf()
[all …]