<Chuckle> <grin>

Yes, tidy is indeed in the eye of the beholder.  I have that discussion with
my 17 year old son from time to time.  I do most of my Windows programming
in Delphi unless a client insists on C.  99% of my embedded programming is
done in C.  So using pointers for your application is much tidier to me
since speed was the constraint.  ;-)

John


Wireless CAN with the CANRF module now available.
http://www.autoartisans.com/products
Automation Artisans Inc.
Ph. 1 250 544 4950


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Ross Levis
> Sent: Friday, November 04, 2005 9:16 PM
> To: Borland's Delphi Discussion List
> Subject: Re: Test memory block
> 
> 
> John Dammeyer wrote:
> 
> > The second part of your test looks at the last 3 bytes of a 
> longword.
> First,  I believe it checks up to the first 3 bytes of the 
> buffer which 
> you've already looked at.  Minor glitch.
> 
> Oops, yes this should be:
> 
>   for i := (Size32 shl 2) to BufferSize -1 do
>     if Buffer8[i] <> 0 then  // test remaining 1,2, or 3 bytes
>       Exit;
> 
> But I see your point on the extra multiplication and 
> addition.  It may 
> look tidier but is not quite as fast.
> 
> Regards,
> Ross. 
> 
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi
> 
> 

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to