<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"><<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <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"><<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>></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 <<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>> wrote:<br>
<br>
> Hi Tim,<br>
><br>
> I'm simulating bitblt code and have a situation where<br>
><br>
> (cmShiftTable at: 0) = 4294967280<br>
> (cmShiftTable at: 0) hex '16rFFFFFFF0'<br>
><br>
> Clearly this should be -4.<br>
><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! quite :)</div><div> </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> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> This breaks simulation because<br>
> (sourcePixel bitAnd: (cmMaskTable at: 0)) bitShift: (cmShiftTable at: 0)<br>
> is trying to make a 4Gb LargePositiveInteger ;-).<br>
><br>
> How can we make it so?<br>
<br>
Hmm, well if you need to make a 4Gb LPI I guess you’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>loadColorMapShiftOrMaskFrom: looks like the culprit to me though - (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'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>