def S32.saturate

bend-kit-int@0.2.0.0 · int.bend:673

import bend-kit-int@0.2.0.0/int.bend as Int
import Base

673def S32.saturate(low: Bool, o: Bool & U32) -> U32:
674  (ov, r) = o
675  match ov:
676    case True{}:
677      S32.sat(low)
678    case False{}:
679      r

Uses (5)

Used by (3)