On Wed, May 22, 2002 at 10:52:56PM +0200, Michel Lanners wrote: > On 22 May, this message from Albert D. Cahalan echoed through cyberspace: > > =?iso-8859-1?Q?Rog writes: > [abot fast memcopy in asm] > > > > dcbt eight,src /* prefetch the next cache line */ > > loop_top: > > dcba eight,dst /* allocate a cache line */ > > lfd f11,8,(src) > > lfd f12,16,(src) > > lfd f13,24,(src) > > lfdu f14,32,(src) > ^^ > These should probably be 0,8,16 and 24... same goes below.
Um, no. The reason for using 8,16,24,32 offsets is so that you can increment the pointer using the last offset (note the lfdu instead of lfd). > And don't forget the loop counter and some increment... Or code it with > a decrement operator and copy backwards? You mean like this? > > bdnz loop_top dave... -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]