Home
last modified time | relevance | path

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

/third_party/iowow/src/kv/
Diwkv.c1051 uint8_t npow = kb->szpow - 1; in _kvblk_rmkv() local
1052 while (npow > KVBLK_INISZPOW && (1ULL << (npow - 1)) >= dsz) { in _kvblk_rmkv()
1053 --npow; in _kvblk_rmkv()
1063 …rc = dlsnr->onwrite(dlsnr, kb->addr + (1ULL << npow) - maxoff, mm + kb->addr + nlen - maxoff, maxo… in _kvblk_rmkv()
1066 memmove(mm + kb->addr + (1ULL << npow) - maxoff, in _kvblk_rmkv()
1072 rc = fsm->reallocate(fsm, (1ULL << npow), &kb->addr, &nlen, IWKV_FSM_ALLOC_FLAGS); in _kvblk_rmkv()
1074 kb->szpow = npow; in _kvblk_rmkv()
1154 uint8_t npow = kb->szpow; in _kvblk_addkv() local
1155 while ((1ULL << ++npow) < nsz); in _kvblk_addkv()
1157 rc = fsm->allocate(fsm, (1ULL << npow), &naddr, &nlen, IWKV_FSM_ALLOC_FLAGS); in _kvblk_addkv()
[all …]