def room_m

bend-collections@1.0.0.0 · src/containers/lru.bend:110

import bend-collections@1.0.0.0/src/containers/lru.bend as Lru
import Base

110def room_m(a, -V: Kind(a), +cap: U32, +n: U32, +head: U32, +tail: U32, +free: U32, tab: Array<U32>, ks: Array<String>, ents: Array<Maybe<a, V>>, lk: Array<U32>, r: Array<U32> & U32) -> LRU<a, V>:
111  (m, +mask) = r
112  room_fin(a, V, cap, n, head, tail, free, ks, ents, lk, grow_tab(m, tab, mask, U32.is_gt(U32.shl(U32.inc(n)), U32.inc(mask))))

Uses (12)

Used by (1)