def Int.sext

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

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

480def Int.sext(m: Nat, +n: Nat, +w: Word(n)) -> Word(m):
481  Int.ext(m, n, Int.msb(n, w), w)

Uses (4)

Used by (2)