MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _get_balanced_id

Function _get_balanced_id

components/mm/mm_page.c:875–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873}
874
875rt_inline int _get_balanced_id(rt_uint32_t size_bits)
876{
877 rt_ubase_t last_alloc = (_last_alloc / RT_PAGE_AFFINITY_BLOCK_SIZE);
878 return (last_alloc + (1u << size_bits)) & AFFID_BITS_MASK(size_bits);
879}
880
881static void *_do_pages_alloc_noaff(rt_uint32_t size_bits, size_t flags)
882{

Callers 1

_do_pages_alloc_noaffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected