aboutsummaryrefslogtreecommitdiffstats
path: root/kvx
diff options
context:
space:
mode:
authorDavid Monniaux <David.Monniaux@univ-grenoble-alpes.fr>2021-12-15 18:19:02 +0100
committerDavid Monniaux <David.Monniaux@univ-grenoble-alpes.fr>2021-12-15 18:19:02 +0100
commite71543cef7a06dbe7091fac15aba7ca4d7ab32fd (patch)
tree60037d5c13a848b95d51536453b599804d5cfed7 /kvx
parentc254d0b3935fa956ea220731b6ee209ab4cc641a (diff)
downloadcompcert-kvx-e71543cef7a06dbe7091fac15aba7ca4d7ab32fd.tar.gz
compcert-kvx-e71543cef7a06dbe7091fac15aba7ca4d7ab32fd.zip
patine
Diffstat (limited to 'kvx')
-rw-r--r--kvx/FPDivision.v15
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 :=