diff --git a/lib/float/common.sail b/lib/float/common.sail index 47311231c..aac734da5 100644 --- a/lib/float/common.sail +++ b/lib/float/common.sail @@ -66,6 +66,9 @@ function float_decompose(op) = { } } +val float_compose : forall 'n, 'n in { 16, 32, 64, 128 }. float_bits('n) -> bits('n) +function float_compose(op) = op.sign @ op.exp @ op.mantissa + val not : forall ('p : Bool). bool('p) -> bool(not('p)) function not(b) = not_bool(b)