<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/5d3a63fa223ea40f8625a47d367d13b8c85c0842">5d3a63fa</a></strong>
<div>
<span>by Raymond Toy</span>
<i>at 2015-11-28T16:43:54Z</i>
</div>
<pre class='commit-message'>Support constant shifts for bignum digits.
This gets rid of the load of the shift amount to ecx, saving one
instruction and reducing pressure on the ecx register.</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
src/compiler/x86/arith.lisp
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.common-lisp.net/cmucl/cmucl/commit/5d3a63fa223ea40f8625a47d367d13b8c85c0842#diff-0'>
<strong>
src/compiler/x86/arith.lisp
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/compiler/x86/arith.lisp
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/compiler/x86/arith.lisp
</span><span style="color: #aaaaaa">@@ -1445,31 +1445,43 @@
</span> (:translate bignum::%ashr)
(:policy :fast-safe)
(:args (digit :scs (unsigned-reg unsigned-stack) :target result)
<span style="color: #000000;background-color: #ffdddd">- (count :scs (unsigned-reg) :target ecx))
</span><span style="color: #000000;background-color: #ddffdd">+ (count :scs (unsigned-reg immediate)))
</span> (:arg-types unsigned-num positive-fixnum)
(:temporary (:sc unsigned-reg :offset ecx-offset :from (:argument 1)) ecx)
(:results (result :scs (unsigned-reg) :from (:argument 0)
:load-if (not (and (sc-is result unsigned-stack)
(location= digit result)))))
(:result-types unsigned-num)
<span style="color: #000000;background-color: #ffdddd">- (:generator 1
</span><span style="color: #000000;background-color: #ddffdd">+ (:generator 2
</span> (move result digit)
<span style="color: #000000;background-color: #ffdddd">- (move ecx count)
- (inst sar result :cl)))
</span><span style="color: #000000;background-color: #ddffdd">+ (sc-case count
+ (unsigned-reg
+ (move ecx count)
+ (inst sar result :cl))
+ (immediate
+ (inst sar result (tn-value count))))))
</span>
(define-vop (digit-lshr digit-ashr)
(:translate bignum::%digit-logical-shift-right)
<span style="color: #000000;background-color: #ffdddd">- (:generator 1
</span><span style="color: #000000;background-color: #ddffdd">+ (:generator 2
</span> (move result digit)
<span style="color: #000000;background-color: #ffdddd">- (move ecx count)
- (inst shr result :cl)))
</span><span style="color: #000000;background-color: #ddffdd">+ (sc-case count
+ (unsigned-reg
+ (move ecx count)
+ (inst shr result :cl))
+ (immediate
+ (inst shr result (tn-value count))))))
</span>
(define-vop (digit-ashl digit-ashr)
(:translate bignum::%ashl)
<span style="color: #000000;background-color: #ffdddd">- (:generator 1
</span><span style="color: #000000;background-color: #ddffdd">+ (:generator 2
</span> (move result digit)
<span style="color: #000000;background-color: #ffdddd">- (move ecx count)
- (inst shl result :cl)))
</span><span style="color: #000000;background-color: #ddffdd">+ (sc-case count
+ (unsigned-reg
+ (move ecx count)
+ (inst shl result :cl))
+ (immediate
+ (inst shl result (tn-value count))))))
</span>
;;;; Static functions.
</code></pre>
<br>
</li>
</div>
<div class='footer' style='margin-top: 10px;'>
<p>
—
<br>
<a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/5d3a63fa223ea40f8625a47d367d13b8c85c0842">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/5d3a63fa223ea40f8625a47d367d13b8c85c0842"}}</script>
</p>
</div>
</body>
</html>