<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 rtoy-setexception-inexact 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/89097cd0d602d233c8deddd443ba4baf0f147aef">89097cd0</a></strong>
<div>
<span>by Raymond Toy</span>
<i>at 2015-12-24T09:15:27Z</i>
</div>
<pre class='commit-message'>Use setexception to raise the inexact exception for %expm1.</pre>
</li>
</ul>
<h4>2 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
src/lisp/s_expm1.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
tests/fdlibm.lisp
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.common-lisp.net/cmucl/cmucl/commit/89097cd0d602d233c8deddd443ba4baf0f147aef#diff-0'>
<strong>
src/lisp/s_expm1.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/lisp/s_expm1.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/lisp/s_expm1.c
</span><span style="color: #aaaaaa">@@ -160,8 +160,8 @@ Q5  =  -2.01099218183624371326e-07; /* BE8AFDB7 6E09C32D */
</span>                 
            }
            if(xsb!=0) { /* x < -56*ln2, return -1.0 with inexact */
<span style="color: #000000;background-color: #ffdddd">-                if(x+tiny<0.0)               /* raise inexact */
-               return tiny-one;        /* return -1 */
</span><span style="color: #000000;background-color: #ddffdd">+                fdlibm_setexception(x, FDLIBM_INEXACT);
+               return tiny - one;
</span>       }
        }
 
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://gitlab.common-lisp.net/cmucl/cmucl/commit/89097cd0d602d233c8deddd443ba4baf0f147aef#diff-1'>
<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">@@ -163,7 +163,12 @@
</span>            (kernel:%expm1 709.8d0))
     )
   (kernel::with-float-traps-masked (:invalid)
<span style="color: #000000;background-color: #ffdddd">-    (assert-true (ext::float-nan-p (kernel:%expm1 *snan*)))))
</span><span style="color: #000000;background-color: #ddffdd">+    (assert-true (ext::float-nan-p (kernel:%expm1 *snan*))))
+  ;; expm1(x) = -1 for x < -56*log(2), signaling inexact
+  (let ((x (* -57 (log 2d0))))
+    (with-inexact-exception-enabled
+       (assert-error 'floating-point-inexact
+                     (kernel:%expm1 x)))))
</span> 
 (define-test %log1p.exceptions
   (:tag :fdlibm)
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/89097cd0d602d233c8deddd443ba4baf0f147aef">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/89097cd0d602d233c8deddd443ba4baf0f147aef"}}</script>
</p>
</div>
</body>
</html>