[fpc-pascal] avx2 32-byte alignment

Adriaan van Os fpc at microbizz.nl
Tue Nov 29 15:10:47 CET 2016

Marco van de Voort wrote:

> 'm preparing a DLL with AVX2 routines in FPC, since Delphi doesn't seem to
> have AVX2 support.

Very interesting. I will be pleased to compare it (on OS X) with Apple's Accelerate framework and 
with Intel's IPP lib <http://adriaan.biz/intel/ipp.pas.zip>.

Jonas Maebe wrote:
> marcov wrote on Tue, 29 Nov 2016:
>> I wonder if it is possible to align constants used for shuffling
>> (array[0..31] of byte typically) on 32-byte borders,
> http://www.freepascal.org/docs-html/3.0.0/prog/progsu9.html

But that is the code alignment, not the data alignment 
<http://www.freepascal.org/docs-html/3.0.0/prog/progsu1.html> ?

Also note that it is the OS that specifies the alignment on the stack, so you probably won't get 
32-byte alignment for arrays on the stack.


Adriaan van Os

More information about the fpc-pascal mailing list