<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">On 24/01/2014 01:03, Martin Frb wrote:<br>
</div>
<blockquote cite="mid:52E1BBC6.9050206@mfriebe.de" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix"><br>
</div>
Until that is done, your best choice, if you need the speed is to
do this by hand:<br>
<br>
<br>
or better<br>
if cnt = 0 then exit;<br>
tmpptrA := @a[0];<br>
tmpptrB := @b[0];<br>
for i := 0 to cnt - 1 do<br>
begin<br>
tmpVAlue := tmpptrA^ + tmpptrB^;<br>
tmpptrA^ := tmpVAlue;<br>
inc(tmpptrA); // assuming a typed pointer<br>
tmpptrA^ := tmpVAlue;<br>
inc(tmpptrB); // assuming a typed pointer<br>
end;<br>
</blockquote>
<br>
Actually, if the late hour has not clouded my sight, it goes even
better.<br>
<br>
tmpptrA := @a[0];<br>
tmpptrB := @b[0];<br>
tmpVAlue := tmpptrA^;<br>
for i := 0 to cnt - 1 do<br>
begin<br>
tmpVAlue := tmpVAlue + tmpptrB^;<br>
tmpptrA^ := tmpVAlue;<br>
inc(tmpptrA); // assuming a typed pointer<br>
inc(tmpptrB); // assuming a typed pointer<br>
end;<br>
tmpptrA^ := tmpVAlue;<br>
<br>
the last is actually a[cnt], not sure if intended, but it is done so
in the original code too.<br>
</body>
</html>