Discussion:
[fpc-devel] Working on FillWord, FillDWord and FillQWord again
J. Gareth Moreton via fpc-devel
2021-05-14 02:49:09 UTC
Permalink
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.

Gareth aka. Kit
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
https://lists.f
Michael Van Canneyt via fpc-devel
2021-05-14 06:03:26 UTC
Permalink
Post by J. Gareth Moreton via fpc-devel
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.
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
https://list
J. Gareth Moreton via fpc-devel
2021-05-14 06:04:55 UTC
Permalink
Excellent, thank you.

Gareth aka. Kit
Post by Michael Van Canneyt via fpc-devel
Post by J. Gareth Moreton via fpc-devel
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.
_______________________________________________
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listi
Loading...