aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Monniaux <David.Monniaux@univ-grenoble-alpes.fr>2021-12-12 13:13:09 +0100
committerDavid Monniaux <David.Monniaux@univ-grenoble-alpes.fr>2021-12-12 13:13:09 +0100
commit5e83a412e68916f02d86f6e7b719cd93d50c152d (patch)
tree6c2be0c19982e8276fd3ae7b4cd91f6c395a68ce /lib
parent841fff988e26eb44f7aceeab1d77be5833873625 (diff)
downloadcompcert-kvx-5e83a412e68916f02d86f6e7b719cd93d50c152d.tar.gz
compcert-kvx-5e83a412e68916f02d86f6e7b719cd93d50c152d.zip
_ne conversions
Diffstat (limited to 'lib')
-rw-r--r--lib/Floats.v9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Floats.v b/lib/Floats.v
index 9ee5302d..bc066b20 100644
--- a/lib/Floats.v
+++ b/lib/Floats.v
@@ -360,6 +360,15 @@ Definition to_long (f:float): option int64 := (**r conversion to signed 64-bit i
Definition to_longu (f:float): option int64 := (**r conversion to unsigned 64-bit int *)
option_map Int64.repr (ZofB_range _ _ f 0 Int64.max_unsigned).
+Definition to_int_ne (f:float): option int := (**r conversion to signed 32-bit int *)
+ option_map Int.repr (ZofB_ne_range _ _ f Int.min_signed Int.max_signed).
+Definition to_intu_ne (f:float): option int := (**r conversion to unsigned 32-bit int *)
+ option_map Int.repr (ZofB_ne_range _ _ f 0 Int.max_unsigned).
+Definition to_long_ne (f:float): option int64 := (**r conversion to signed 64-bit int *)
+ option_map Int64.repr (ZofB_ne_range _ _ f Int64.min_signed Int64.max_signed).
+Definition to_longu_ne (f:float): option int64 := (**r conversion to unsigned 64-bit int *)
+ option_map Int64.repr (ZofB_ne_range _ _ f 0 Int64.max_unsigned).
+
Definition of_int (n:int): float := (**r conversion from signed 32-bit int *)
BofZ 53 1024 __ __ (Int.signed n).
Definition of_intu (n:int): float:= (**r conversion from unsigned 32-bit int *)