Fix for ocaml 4.14.0

This commit is contained in:
Anthony Scemama 2022-12-12 18:16:17 +01:00
parent 9b5ca55bd8
commit 44e99fe252
7 changed files with 272 additions and 269 deletions

View File

@ -9,6 +9,7 @@
str
zarith
getopt
camlp-streams
)
(c_names

View File

@ -19,7 +19,7 @@
/* [[file:~/QCaml/common/util.org::*Erf][Erf:1]] */
CAMLprim value erf_float_bytecode(value x) {
return copy_double(erf(Double_val(x)));
return caml_copy_double(erf(Double_val(x)));
}
CAMLprim double erf_float(double x) {
@ -32,7 +32,7 @@ CAMLprim double erf_float(double x) {
/* [[file:~/QCaml/common/util.org::*Erfc][Erfc:1]] */
CAMLprim value erfc_float_bytecode(value x) {
return copy_double(erfc(Double_val(x)));
return caml_copy_double(erfc(Double_val(x)));
}
CAMLprim double erfc_float(double x) {
@ -45,7 +45,7 @@ CAMLprim double erfc_float(double x) {
/* [[file:~/QCaml/common/util.org::*Gamma][Gamma:1]] */
CAMLprim value gamma_float_bytecode(value x) {
return copy_double(tgamma(Double_val(x)));
return caml_copy_double(tgamma(Double_val(x)));
}

View File

@ -44,7 +44,7 @@ open Alcotest
#+begin_src c :tangle (eval c) :exports none
CAMLprim value erf_float_bytecode(value x) {
return copy_double(erf(Double_val(x)));
return caml_copy_double(erf(Double_val(x)));
}
CAMLprim double erf_float(double x) {
@ -66,7 +66,7 @@ external erf_float : float -> float
#+begin_src c :tangle (eval c) :exports none
CAMLprim value erfc_float_bytecode(value x) {
return copy_double(erfc(Double_val(x)));
return caml_copy_double(erfc(Double_val(x)));
}
CAMLprim double erfc_float(double x) {
@ -87,7 +87,7 @@ external erfc_float : float -> float = "erfc_float_bytecode" "erfc_float" [@@unb
#+begin_src c :tangle (eval c) :exports none
CAMLprim value gamma_float_bytecode(value x) {
return copy_double(tgamma(Double_val(x)));
return caml_copy_double(tgamma(Double_val(x)));
}

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2022-11-07 Mon 14:58 -->
<!-- 2022-12-12 Mon 18:12 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Top-level</title>
@ -250,18 +250,18 @@ org_html_manager.setup(); // activate after the parameters are set
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org031e9dd">1. Summary</a></li>
<li><a href="#orgaff48c7">1. Summary</a></li>
</ul>
</div>
</div>
<div id="outline-container-org031e9dd" class="outline-2">
<h2 id="org031e9dd"><span class="section-number-2">1</span> Summary</h2>
<div id="outline-container-orgaff48c7" class="outline-2">
<h2 id="orgaff48c7"><span class="section-number-2">1</span> Summary</h2>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Anthony Scemama</p>
<p class="date">Created: 2022-11-07 Mon 14:58</p>
<p class="date">Created: 2022-12-12 Mon 18:12</p>
<p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

View File

@ -27,6 +27,7 @@ in quantum chemistry.")
(depends
(ocaml (>= 4.10))
(dune (>= 1.10))
(camlp-streams (>= 5.0))
lacaml
getopt
zarith

View File

@ -20,6 +20,7 @@ in quantum chemistry."""
depends: [
"ocaml" {>= "4.10"}
"dune" {>= "1.10"}
"camlp-streams" {>= "5.0"}
"lacaml"
"getopt"
"zarith"