summaryrefslogtreecommitdiff
path: root/stdlib/stdlib.mli
diff options
context:
space:
mode:
authorMarkus Mottl <markus.mottl@gmail.com>2021-06-02 04:16:28 -0400
committerGitHub <noreply@github.com>2021-06-02 10:16:28 +0200
commit7eaf05b3cfc6469a2f24f47a8e6e64dfa6cfaa62 (patch)
tree7608475a1c69d8f9d0a418dbbc302fa7e138b097 /stdlib/stdlib.mli
parentb5821db3378b041f2b3085c5cf87a4bcf35e6dff (diff)
downloadocaml-7eaf05b3cfc6469a2f24f47a8e6e64dfa6cfaa62.tar.gz
Added some missing C99 float operations (#944)
* Added some missing C99 float operations * Update float.template.mli * Automatically enable shims on VS 2012 and earlier * Refactor lib-float test * Add autoconf test for runnable host exes When building for Windows, configuring with --build and --host enables cross-compilation mode but configuring with just --host doesn't (since the resulting executables can be run on the build machine). Adds an additional check to see whether executables from the C compiler can be run _regardless_ of autoconf's cross-compilation mode. * Workaround broken round on mingw-w64 * Generalise the fma test in configure Co-authored-by: David Allsopp <david.allsopp@metastack.com>
Diffstat (limited to 'stdlib/stdlib.mli')
-rw-r--r--stdlib/stdlib.mli27
1 files changed, 27 insertions, 0 deletions
diff --git a/stdlib/stdlib.mli b/stdlib/stdlib.mli
index 10d41ea96c..e2e898266f 100644
--- a/stdlib/stdlib.mli
+++ b/stdlib/stdlib.mli
@@ -564,6 +564,33 @@ external tanh : float -> float = "caml_tanh_float" "tanh"
[@@unboxed] [@@noalloc]
(** Hyperbolic tangent. Argument is in radians. *)
+external acosh : float -> float = "caml_acosh_float" "caml_acosh"
+ [@@unboxed] [@@noalloc]
+(** Hyperbolic arc cosine. The argument must fall within the range
+ [[1.0, inf]].
+ Result is in radians and is between [0.0] and [inf].
+
+ @since 4.13.0
+*)
+
+external asinh : float -> float = "caml_asinh_float" "caml_asinh"
+ [@@unboxed] [@@noalloc]
+(** Hyperbolic arc sine. The argument and result range over the entire
+ real line.
+ Result is in radians.
+
+ @since 4.13.0
+*)
+
+external atanh : float -> float = "caml_atanh_float" "caml_atanh"
+ [@@unboxed] [@@noalloc]
+(** Hyperbolic arc tangent. The argument must fall within the range
+ [[-1.0, 1.0]].
+ Result is in radians and ranges over the entire real line.
+
+ @since 4.13.0
+*)
+
external ceil : float -> float = "caml_ceil_float" "ceil"
[@@unboxed] [@@noalloc]
(** Round above to an integer value.