| 1 |
Require Import PrimInt63 PrimFloat. |
| 2 |
|
| 3 |
Definition half := 0x1p-1%float. |
| 4 |
Definition three_quarters := (half + 0x1p-2)%float. |
| 5 |
|
| 6 |
Check (eq_refl : normfr_mantissa one = 0%uint63). |
| 7 |
Check (eq_refl : normfr_mantissa half = (lsl 1 52)%uint63). |
| 8 |
Check (eq_refl : normfr_mantissa (-half) = (lsl 1 52)%uint63). |
| 9 |
Check (eq_refl : normfr_mantissa (-one) = 0%uint63). |
| 10 |
Check (eq_refl : normfr_mantissa zero = 0%uint63). |
| 11 |
Check (eq_refl : normfr_mantissa nan = 0%uint63). |
| 12 |
Check (eq_refl : normfr_mantissa three_quarters = (lsl 3 51)%uint63). |