[fpc-devel] Working on FillWord, FillDWord and FillQWord again
Michael Van Canneyt
michael at freepascal.org
Fri May 14 08:03:26 CEST 2021
On Fri, 14 May 2021, J. Gareth Moreton via fpc-devel wrote:
> Hi everyone,
>
> I'm back to working on the x86_64 implementations of FillWord, FillDWord
> and FillQWord again due to demand from a couple of end users.
>
> https://bugs.freepascal.org/view.php?id=32637
>
> One question I do have though, because the documentation doesn't bring
> it up... must the functions be able to handle memory that isn't aligned
> to their respective sizes? That is, should FillWord handle memory that's
> not aligned to 2 bytes etc? I would be grateful for an answer, because
> if I'm allowed to assume the memory is at least aligned to the size
> boundary, I can greatly simplify my assembly language.
There should be no limitations on on alignment. These functions can accept
any address.
Michael.
More information about the fpc-devel
mailing list