[fpc-devel] State of SSE/AVX intrinsics
denisgolovan at yandex.ru
Tue Apr 21 13:32:11 CEST 2020
> One thing to be slightly aware of with
> dynamic pointers and alignment. For V: atray
> of Integer etc, make sure you check the
> alignment of V, not V. V points to an
> internal structure that is largely opaque,
> while V points to the actual data, which I
> imagine is what you want to pass into VMOVAPS
> Gareth aka. Kit
I believe your are wrong here.
For dynamic arrays, service data is located at negative offset and pointer itself _is_ zero element address.
TIntArray = array of Integer;
Writeln(NativeInt(Pointer(v)) = NativeInt(Pointer(@v))); // always gives true
More information about the fpc-devel