Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2021-05

Working on FillWord, FillDWord and FillQWord again

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

J. Gareth Moreton

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

Reply by email

Michael Van Canneyt
to J. Gareth Moreton
J. Gareth Moreton wrote 13 lines
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.

Reply by email

J. Gareth Moreton
to Michael Van Canneyt

Excellent, thank you.

Gareth aka. Kit

Michael Van Canneyt wrote 28 lines
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. _______________________________________________ fpc-devel maillist  -  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

Reply by email