<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Jolyon,<br>
<br>
From memory, they used 2 int32's to make a float - this could have
been int16's - memory is very vague on this :) The one was used to
represent the whole numbers and the other was to show the decimal
numbers<br>
<br>
Cheers,<br>
<br>
Pieter<br>
<br>
On 17/08/2014 12:05, Jolyon Smith wrote:<br>
</div>
<blockquote
cite="mid:CALXexOr+O=0MjKBhBs_RQS+qDbsg7uVEY8n03wZGVJbhv8wzLQ@mail.gmail.com"
type="cite">
<div dir="ltr">@Pieter - I don't understand what you mean when you
say that "float was int32.int32". For starters, "float" is an
imprecise term. If you mean "single" then the entire value was
always 32 bit in it's entirety. If you mean double then it was
always 64 bit. What is this "in32.int32" type of which you
speak ? O.o</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 17 August 2014 11:52, Jolyon Smith <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:jsmith@deltics.co.nz" target="_blank">jsmith@deltics.co.nz</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I think there are too many variables involved
to give an answer to this question without some of those
variables being reduced to known values.<br>
<br>
e.g. what hardware ? what version of Delphi ? x64
target or x86 ? what precision of floating point ?<br>
<br>
Having said that, in a quick test knocked up in my
Smoketest framework I found that Double comfortably
outperforms Int64 when compiling for Win32 but that both
Double and Int64 demonstrated improved performance when
compiling for Win64 and that whilst Double still showed
some advantage it was not as significant (and in some test
runs the difference was negligible).<br>
<br>
If you are targeting FireMonkey you will have to bear in
mind that the back-end compiler is different to the
x86/x64 backend, so results obtained using the WinXX
compilers will not necessarily be indicative of
performance on the ARM or LLVM platforms.
<div>
<br>
<br>
Conditions:
<div><br>
- Delphi XE4</div>
<div> - Running in a 64-bit Win 7 VM<br>
</div>
<div>
<div> - No testing was done for correctness of the
results.</div>
<div><br>
</div>
<br>
<br>
</div>
</div>
</div>
<div class="gmail_extra">
<br>
<br>
<div class="gmail_quote">
<div class="">On 16 August 2014 15:30, Ross Levis <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:ross@stationplaylist.com"
target="_blank">ross@stationplaylist.com</a>></span>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">
<div link="blue" vlink="purple" lang="EN-NZ">
<div>
<p class="MsoNormal"><span
style="font-size:12.0pt;color:#1f497d">Would
I be correct that int64 multiplications
would be faster than floating point in
Delphi? My app needs to do several million.</span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;color:#1f497d"> </span></p>
</div>
</div>
<br>
</div>
<div class="">_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a moz-do-not-send="true"
href="mailto:delphi@listserver.123.net.nz"
target="_blank">delphi@listserver.123.net.nz</a><br>
Admin: <a moz-do-not-send="true"
href="http://delphi.org.nz/mailman/listinfo/delphi"
target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a
moz-do-not-send="true"
href="mailto:delphi-request@listserver.123.net.nz"
target="_blank">delphi-request@listserver.123.net.nz</a>
with Subject: unsubscribe<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe</pre>
</blockquote>
<br>
</body>
</html>