Skip to content
Snippets Groups Projects
Commit a45ca6c2 authored by Valentin Perrelle's avatar Valentin Perrelle Committed by David Bühler
Browse files

[Dive] Fix floating points types lower bounds limit

parent b8aa9be2
No related branches found
No related tags found
No related merge requests found
...@@ -34,17 +34,13 @@ let _fval_contains_maximal_bounds fkind fval = ...@@ -34,17 +34,13 @@ let _fval_contains_maximal_bounds fkind fval =
Fval.has_smaller_max_bound top fval >= 0 Fval.has_smaller_max_bound top fval >= 0
let fkind_limits = let fkind_limits =
let single = { let max_single = float_of_string "0x1.fffffep+127"
min = float_of_string "0x1p-126"; and max_double = float_of_string "0x1.fffffffffffffp+1023" in
max = float_of_string "0x1.fffffep+127"; let single_limits = { min = -. max_single ; max = max_single }
} and double_limits = { min = -. max_double ; max = max_double } in
and double = { function
min = float_of_string "0x1p-1022"; | FFloat -> single_limits
max = float_of_string "0x1.fffffffffffffp+1023"; | FDouble -> double_limits
}
in function
| FFloat -> single
| FDouble -> double
| FLongDouble -> assert false | FLongDouble -> assert false
let float_grade_limits = let float_grade_limits =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment