Skip to content

Commit

Permalink
Switched to ocamlformat 0.27.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mmottl committed Dec 8, 2024
1 parent 255f2d9 commit 7b2eea4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ocamlformat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 0.26.2
version = 0.27.0
profile = conventional

# Default overrides
Expand Down
6 changes: 4 additions & 2 deletions src/config/do_sf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ let ext_quot =
List.iter (fun a -> Format.fprintf bh " -> %s" (String.trim a)) argr;
Format.fprintf bh "@ = ";
if List.length args > 6 then Format.fprintf bh "\"%s_bc\"" name_c;
if (* List.for_all ~f:((=) "float") args && *)
name_float <> "" then (
if
(* List.for_all ~f:((=) "float") args && *)
name_float <> ""
then (
if List.length args <= 6 then Format.fprintf bh "\"%s\"" name_c;
Format.fprintf bh " \"%s\" [%@%@unboxed] [%@%@noalloc]" name_float)
else Format.fprintf bh "\"%s\"" name_c;
Expand Down
3 changes: 1 addition & 2 deletions src/poly.mli
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ type poly = float array

external eval : poly -> float -> float = "ml_gsl_poly_eval"
(** [eval p x] returns
[p.(0) +. p.(1) *. x +. p.(2) *. x**2 +. ... +. p.(n)
*. x**n] where
[p.(0) +. p.(1) *. x +. p.(2) *. x**2 +. ... +. p.(n) *. x**n] where
[n = Array.length p]. *)

(** {3 Quadratic Equations} *)
Expand Down

0 comments on commit 7b2eea4

Please sign in to comment.