aboutsummaryrefslogtreecommitdiffstats
path: root/common/Values.v
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2008-05-30 12:27:15 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2008-05-30 12:27:15 +0000
commitf4b41226d60ca57c5981b0a46e0a495152b5301f (patch)
treefb3ea7a1cabfc5e4c56ecc1b60eeacd2883a8293 /common/Values.v
parentf77e0ade09d8fd17add98c3bc4317627078f3aa8 (diff)
downloadcompcert-kvx-f4b41226d60ca57c5981b0a46e0a495152b5301f.tar.gz
compcert-kvx-f4b41226d60ca57c5981b0a46e0a495152b5301f.zip
Introduction de l'operation intuoffloat (float -> unsigned int). Pas encore utilisee dans le front-end C.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@647 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'common/Values.v')
-rw-r--r--common/Values.v6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/Values.v b/common/Values.v
index 80c5c93e..19772446 100644
--- a/common/Values.v
+++ b/common/Values.v
@@ -119,6 +119,12 @@ Definition intoffloat (v: val) : val :=
| _ => Vundef
end.
+Definition intuoffloat (v: val) : val :=
+ match v with
+ | Vfloat f => Vint (Float.intuoffloat f)
+ | _ => Vundef
+ end.
+
Definition floatofint (v: val) : val :=
match v with
| Vint n => Vfloat (Float.floatofint n)