(biased-exponent (extract-bit-field w t bits))
(trailing-significand (extract-bit-field t 0 bits)))
(let ((x (compose sign biased-exponent trailing-significand)))
- (assert (or (not (finite? x)) (exact? x)))
+ (assert (or (zero? x) (not (finite? x)) (exact? x)))
;; Confirm that it yields the same bits.
(receive (sign* biased-exponent* trailing-significand*)
(decompose x)
(#x0000000000000001)
(#x1000000000000000)
(#x1000000000000001)
+ (#x8000000000000000)
+ (#x8000000000000001)
(#x7ff0000000000000)
(#xfff0000000000000)
+ (#x7ff0000000000001)
+ (#xfff0000000000001)
+ (#x7ff8000000000000)
+ (#xfff8000000000000)
+ (#x7ff8000000000001)
+ (#xfff8000000000001)
(#x0123456789abcdef)
(#xfedcba9876543210))
(test-ieee754-roundtrip 11 53