<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 9:57 AM, Guillermo Polito <span dir="ltr">&lt;<a href="mailto:guillermopolito@gmail.com" target="_blank">guillermopolito@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> <br><div dir="ltr">In Pharo it is similar. However, we would like to have an image where BitBlt and Form are not there.<br></div></blockquote><div><br></div><div>Here&#39;s one that works on both Spur and V3.  It only works on a Cog or Stack VM (and hence is OK for Pharo) since it depends on Floats being stored in the platform order internally.</div><div><br></div><div><div><br></div><div>| f |</div><div>f := Float new.</div><div>f at: 2 put: 1. &quot;store the least significant word of the float with 1; on big endian machines this is the second word&quot;</div><div>Bitmap adoptInstance: f.</div><div>f first = 1 ifTrue: [#little] ifFalse: [#big]</div></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"></div><br><div class="gmail_quote">El mié., 18 de mar. de 2015 a la(s) 5:52 p. m., David T. Lewis &lt;<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>&gt; escribió:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
It is easy to add a primitive for this, but it should not be necessary.<br>
See SmalltalkImage&gt;&gt;calcEndianness in Squeak.<br>
<br>
Dave<br>
<br>
&gt;  Hello,<br>
&gt;<br>
&gt; Is there a primitive or a parameter that I can call from the image to know<br>
&gt; the endianness of the processor / VM ?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Clement<br>
&gt;<br>
<br>
<br>
</blockquote></div>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">best,<div>Eliot</div></div>
</div></div>