<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>I assume what they are getting at is an emulator data representation issue. Too large integers overflow the fixnum format (28 bits on a 32-bit host, I believe), which means falling back to a less efficient representation and more complex arithmetic. 64-bit words mean you can represent about 60 bits or so as "immediates", so operations on 32-bit quantities, in particular, go faster and can be represented more compactly.</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt">This should, at a guess, be handled fairly well by just an appropriate port.</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br></div><div
 style="font-family:times new roman, new york, times, serif;font-size:12pt">Best,</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Thomas</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Camille Troillard <tuscland@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Per Gustafsson <perjgus@gmail.com><br><b><span style="font-weight: bold;">Cc:</span></b> erlang-questions@erlang.org<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, March 25, 2009 11:59:00 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [erlang-questions] Erlang/OTP 13A and Darwin<br></font><br>
Thanks Ulf and Per,<div><br><br><div class="gmail_quote">On Wed, Mar 25, 2009 at 11:42 AM, Per Gustafsson <span dir="ltr"><<a rel="nofollow" ymailto="mailto:perjgus@gmail.com" target="_blank" href="mailto:perjgus@gmail.com">perjgus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
A type of calculation that becomes much more efficient on 64-bit machines are 32-bit fixed integer calculations,</blockquote><div><br></div><div>That is very interesting, would that mean that we could have faster arithmetic in Erlang without too much effort?  I was looking for better math performance.  What about 32 bits builds?  Are there some possible (planned?) optimisations regarding this domain?</div>
<div><br></div><div><br></div><div>Cam</div><div><br></div></div></div>
</div></div><div style="position:fixed"></div></div><br>

      </body></html>