def del_link

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

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

271# Delete the bucket holding link l (its check word is w): no key comparison.
272def del_link(tab: Array<U32>, +mask: U32, +w: U32, +l: U32) -> Array<U32>:
273  dfind(U32.to_nat(U32.inc(mask)), dstep(tab, HS.bucket(w, mask), l), mask, l, HS.bucket(w, mask))

Uses (7)

Used by (1)