<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
img {
max-width: 100%;
height: auto;
}
p.details {
font-style:italic;
color:#777
}
.footer p {
font-size:small;
color:#777
}
pre.commit-message {
white-space: pre-wrap;
}
.file-stats a {
text-decoration: none;
}
.file-stats .new-file {
color: #090;
}
.file-stats .deleted-file {
color: #B00;
}
</style>
<body>
<div class='content'>
<h3>Raymond Toy pushed to branch master at <a href="https://gitlab.common-lisp.net/cmucl/cmucl">cmucl / cmucl</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/1d604dc615d00763f303fb035eb8d64e987fc69c">1d604dc6</a></strong>
<div>
<span>by Raymond Toy</span>
<i>at 2015-12-19T09:32:37Z</i>
</div>
<pre class='commit-message'>Add tests for asinh, taken from fdlibm-js.</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
tests/fdlibm.lisp
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.common-lisp.net/cmucl/cmucl/commit/1d604dc615d00763f303fb035eb8d64e987fc69c#diff-0'>
<strong>
tests/fdlibm.lisp
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/tests/fdlibm.lisp
</span><span style="color: #000000;background-color: #ddffdd">+++ b/tests/fdlibm.lisp
</span><span style="color: #aaaaaa">@@ -266,3 +266,37 @@
</span> (kernel:%scalbn most-positive-double-float 2))
(assert-equal ext:double-float-negative-infinity
(kernel:%scalbn most-negative-double-float 2))))
<span style="color: #000000;background-color: #ddffdd">+
+;;; These tests taken from github.com/rtoy/fdlibm-js
+(define-test asinh-basic-tests
+ (:tag :fdlibm)
+ (assert-eql -0d0 (asinh -0d0))
+ (assert-eql 0d0 (asinh 0d0))
+ (let ((x (scale-float 1d0 -29)))
+ ;; asinh(x) = x for x < 2^-28
+ (assert-eql x (asinh x))
+ (assert-eql (- x) (asinh (- x))))
+ (let ((x (scale-float 1d0 -28)))
+ ;; Case 2 > |x| >= 2^-28
+ (assert-eql 3.725290298461914d-9 (asinh x))
+ (assert-eql -3.725290298461914d-9 (asinh (- x))))
+ (let ((x 1d0))
+ ;; Case 2 > |x| >= 2^-28
+ (assert-eql 0.881373587019543d0 (asinh x))
+ (assert-eql -0.881373587019543d0 (asinh (- x))))
+ (let ((x 5d0))
+ ;; Case 2^28 > |x| > 2
+ (assert-eql 2.3124383412727525d0 (asinh x))
+ (assert-eql -2.3124383412727525d0 (asinh (- x))))
+ (let ((x (scale-float 1d0 28)))
+ ;; Case 2^28 > |x|
+ (assert-eql 20.101268236238415d0 (asinh x))
+ (assert-eql -20.101268236238415d0 (asinh (- x))))
+ (let ((x most-positive-double-float))
+ ;; No overflow for most-positive-double-float
+ (assert-eql 710.4758600739439d0 (asinh x))
+ (assert-eql -710.4758600739439d0 (asinh (- x)))))
+
+
+
+
</span>\ No newline at end of file
</code></pre>
<br>
</li>
</div>
<div class='footer' style='margin-top: 10px;'>
<p>
—
<br>
<a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/1d604dc615d00763f303fb035eb8d64e987fc69c">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.common-lisp.net.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.common-lisp.net/cmucl/cmucl/commit/1d604dc615d00763f303fb035eb8d64e987fc69c"}}</script>
</p>
</div>
</body>
</html>