Source/Reference

FloatLiteralSpec

reference/numeric/FloatLiteralSpec.alpha

243 lines42 declarations13.2 KiBSHA-256 136c61d4a2e6

def · lines 187–192

specAssembleNormal

Full file
187def specAssembleNormal =
188  (lambda unrestricted exponentBits : Nat . (lambda unrestricted fractionBits : Nat . (lambda unrestricted bias : Nat . (lambda unrestricted negative : Nat .
189    (lambda unrestricted q : Nat . (lambda unrestricted eOffset : Nat .
190      (specAssembleField exponentBits fractionBits negative
191        (specSelect (specEqual q (specPow2 (nat-add fractionBits 1))) (nat-divide q 2) q)
192        (nat-subtract (nat-add (specSelect (specEqual q (specPow2 (nat-add fractionBits 1))) (nat-add eOffset 1) eOffset) bias) specOffset))))))))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.