Re: [fpc-devel] Aligned array feature

2022-04-12 Thread J. Gareth Moreton via fpc-devel
In the case of a record type (which already exists), "align 16" ensures the whole thing is aligned on a 16-byte boundary, not the individual elements.  Generally it's not something to be to worried about, but in some special cases, such alignment is important (e.g. some of the SSE and AVX assem

Re: [fpc-devel] Aligned array feature

2022-04-12 Thread Karoly Balogh via fpc-devel
Hi, On Tue, 12 Apr 2022, J. Gareth Moreton via fpc-devel wrote: > To complement aligned records, I'm trying out an implementation of > aligned records.  Like how you might declare an aligned record as follows: > > type AlignedVector = packed record >     X, Y: Double; > end align 16; Is this "a

[fpc-devel] Aligned array feature

2022-04-12 Thread J. Gareth Moreton via fpc-devel
Hi everyone, To complement aligned records, I'm trying out an implementation of aligned records.  Like how you might declare an aligned record as follows: type AlignedVector = packed record     X, Y: Double; end align 16; At present I've gone for the following for arrays: type AlignedVector