<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 15, 2014 at 12:32 AM, Nicolas Cellier <span dir="ltr">&lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&nbsp;<br><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-03-15 2:44 GMT+01:00 tim Rowledge <span dir="ltr">&lt;<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
On 14-03-2014, at 6:16 PM, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi Tim,<br>
&gt;<br>
&gt; &nbsp; &nbsp; I&#39;m simulating bitblt code and have a situation where<br>
&gt;<br>
&gt; (cmShiftTable at: 0) = 4294967280<br>
&gt; (cmShiftTable at: 0) hex &#39;16rFFFFFFF0&#39;<br>
&gt;<br>
&gt; Clearly this should be -4.<br>
&gt;<br></blockquote><div><br></div><div>I presume you mean - 2^4 (-2r1e4 or -16) ;)<br></div></div></div></div></blockquote><div><br></div><div>doh! &nbsp;quite :)</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>&nbsp;<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&gt; This breaks simulation because<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; (sourcePixel bitAnd: (cmMaskTable at: 0)) bitShift: (cmShiftTable at: 0)<br>
&gt; is trying to make a 4Gb LargePositiveInteger ;-).<br>
&gt;<br>
&gt; How can we make it so?<br>
<br>
Hmm, well if you need to make a 4Gb LPI I guess you&rsquo;d best have plenty of memory?<br>
<br>
Dunno; looks like cmShiftTable is supposed to use int32_t thingies in the C code.<br>
BitBltSimulation&gt;loadColorMapShiftOrMaskFrom: looks like the culprit to me though - &nbsp;(simulated)firstIndexableField: might be not doing the right thing?<br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" target="_blank">http://www.rowledge.org/tim</a><br>
Useful random insult:- Always loses battles of wits because he&#39;s unarmed.<br>
<br>
<br>
</blockquote></div><br></div></div>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>