diff options
author | David Monniaux <David.Monniaux@univ-grenoble-alpes.fr> | 2021-12-15 18:19:02 +0100 |
---|---|---|
committer | David Monniaux <David.Monniaux@univ-grenoble-alpes.fr> | 2021-12-15 18:19:02 +0100 |
commit | e71543cef7a06dbe7091fac15aba7ca4d7ab32fd (patch) | |
tree | 60037d5c13a848b95d51536453b599804d5cfed7 /kvx | |
parent | c254d0b3935fa956ea220731b6ee209ab4cc641a (diff) | |
download | compcert-kvx-e71543cef7a06dbe7091fac15aba7ca4d7ab32fd.tar.gz compcert-kvx-e71543cef7a06dbe7091fac15aba7ca4d7ab32fd.zip |
patine
Diffstat (limited to 'kvx')
-rw-r--r-- | kvx/FPDivision.v | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/kvx/FPDivision.v b/kvx/FPDivision.v index 46598501..89b54346 100644 --- a/kvx/FPDivision.v +++ b/kvx/FPDivision.v @@ -191,19 +191,10 @@ Proof. rewrite Int64.unsigned_repr by lia. rewrite C4E. cbn. - set (rnd_d := round radix2 (FLT_exp (-1074) 53) ZnearestE). - set (rnd_s := round radix2 (FLT_exp (-149) 24) ZnearestE). + set (rd := round radix2 (FLT_exp (-1074) 53) ZnearestE). + set (rs := round radix2 (FLT_exp (-149) 24) ZnearestE). set (bi := IZR b'). - replace (- rnd_d (rnd_s (1 / rnd_s bi)) * rnd_d bi + 1)%R - with ((- rnd_d (rnd_s (1 / rnd_s bi)) + 1 / rnd_d bi) / (1 /rnd_d bi))%R; - cycle 1. - { field. - cut (1 <= bi <= 4294967295)%R. - unfold rnd_d. - gappa. - split; apply IZR_le; lia. - } - + set (invb := rd (rs (1/ rs bi))%R). Admitted. Definition approx_div a b := |