Re: filling big array of double
- From: "Avatar Zondertau" <avatarzt@xxxxxxxxx (please reply to newsgroup)>
- Date: 31 May 2005 07:48:57 -0700
> In my program I have to fill many big buffers with the same value,
> I found this great function in grids.pas:
>
> procedure FillDword(var Dest; Count: integer; Value: Integer);
> register; asm
> XCHG EDX, ECX
> PUSH EDI
> MOV EDI, EAX
> MOV EAX, EDX
> REP STOSD
> POP EDI
> end;
>
> unfortunally I'm not able to do the same thing with an array of
> "double". Any help would be greatly appreciated.
ISTM it's *very* relevant here is the array is 8-byte aligned or not.
Have you made sure that, when testing, each function got both
possibilities?
Functions that moved 8-byte blocks at once (like the FP implementation
and possible MMX solutions) should definately take this into account
and make sure no unaligned data is written.
.
- References:
- filling big array of double
- From: Henri Gourvest
- filling big array of double
- Prev by Date: Re: filling big array of double
- Next by Date: Re: filling big array of double
- Previous by thread: Re: filling big array of double
- Next by thread: Fastcode MM B&V 0.41
- Index(es):
Relevant Pages
|