Skip to content
Snippets Groups Projects
Commit c9f86431 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[Wp] Cfloat simplifies Compute.key comparison

parent 30caa67b
No related branches found
No related tags found
No related merge requests found
...@@ -305,9 +305,7 @@ module Compute = WpContext.StaticGenerator ...@@ -305,9 +305,7 @@ module Compute = WpContext.StaticGenerator
(struct (struct
type t = model * c_float * op type t = model * c_float * op
let compare k1 k2 = let compare = Pervasives.compare
let open Integer in
compare (of_int (Hashtbl.hash k1)) (of_int (Hashtbl.hash k2))
let pretty fmt (m, ft, op) = let pretty fmt (m, ft, op) =
Format.fprintf fmt "%s_%a_%s" (model_name m) pp_suffix ft (op_name op) Format.fprintf fmt "%s_%a_%s" (model_name m) pp_suffix ft (op_name op)
......
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