def ins_free_pop

bend-collections@1.0.0.0 · src/containers/internal/dlist_storage.bend:377

import bend-collections@1.0.0.0/src/containers/internal/dlist_storage.bend as DlistStorage
import Base
import bend-collections@1.0.0.0/src/containers/types/internal_dlist.bend as E

377# Allocate the top of the free stack: `nx` is the link it stored, which
378# becomes the new top. `nexts[i]` is overwritten by `link_in`, after the read.
379def ins_free_pop(~T: Data, +tag: U32, +fresh: U32, +f: U32, count: Nat, +head: U32, +tail: U32, +depth: Nat, +cap: U32, vals: Array<Maybe<&2, T>>, prevs: Array<U32>, +a: U32, +b: U32, x: T, r: Array<U32> & U32) -> DList<T> & E.Handle:
380  (nexts, +nx) = r
381  link_in(~T, tag, slot(f), fresh, nx, count, head, tail, depth, cap, vals, prevs, nexts, a, b, x)

Uses (10)

Used by (1)