def Int.sext
import bend-kit-int@0.2.0.0/int.bend as Intimport Base
480def Int.sext(m: Nat, +n: Nat, +w: Word(n)) -> Word(m):
481 Int.ext(m, n, Int.msb(n, w), w)
import bend-kit-int@0.2.0.0/int.bend as Intimport Base
480def Int.sext(m: Nat, +n: Nat, +w: Word(n)) -> Word(m):
481 Int.ext(m, n, Int.msb(n, w), w)