def ph_put

bendtorch@1.3.0.0 · main.bend:339

import bendtorch@1.3.0.0/main.bend as Bendtorch
import Base

339def ph_put(odd: Bool, +w: U32, +h: U32) -> U32:
340  match odd:
341    case True{}:
342      ((w .&. 65535 : U32) .|. U32.shln(h, 16n) : U32)
343    case False{}:
344      ((w .&. 4294901760 : U32) .|. h : U32)

Uses (5)

Used by (2)