def sign

bend-lawful-stdlib@0.1.0.0 · src/float/sf32.bend:76

import bend-lawful-stdlib@0.1.0.0/src/float/sf32.bend as Sf32
import Base
import bend-lawful-stdlib@0.1.0.0/src/float/bin.bend as Bin

76# the sign bit, as it sits above the 8 exponent bits
77def sign(neg: Bool) -> Bin.Bin:
78  match neg:
79    case True{}:
80      Bin.pow2(8n)
81    case False{}:
82      Bin.BZ{}

Uses (3)

Used by (1)