Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Adriaan van Os
Marco van de Voort wrote: In our previous episode, Adriaan van Os said: '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

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Marco van de Voort
In our previous episode, Marco van de Voort said: > > > > http://www.freepascal.org/docs-html/3.0.0/prog/progsu9.html > > I skipped over it looking for a $dataalign. $codealign for dataalignement, a > bit of a misnomer. Oh, and thanks, obviously :-) __

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Marco van de Voort
In our previous episode, Adriaan van Os said: > > '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

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: > > 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 I skipped over it looking for a $dataalign. $codealign for dataa

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Jonas Maebe
Adriaan van Os wrote: > Jonas Maebe wrote: >> >> http://www.freepascal.org/docs-html/3.0.0/prog/progsu9.html > > But that is the code alignment, not the data alignment > ? It's for everything (there is no such thing as a "code constant

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Adriaan van Os
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 . Jonas Maebe

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Jonas Maebe
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 Jonas ___ fpc-pascal maillist - f

[fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Marco van de Voort
I'm preparing a DLL with AVX2 routines in FPC, since Delphi doesn't seem to have AVX2 support. I wonder if it is possible to align constants used for shuffling (array[0..31] of byte typically) on 32-byte borders, so that I can use them directly in the code. Till now I preloaded the constants usi