[fpc-devel] State of SSE/AVX intrinsics
Tomas Hajny
XHajT03 at hajny.biz
Wed Apr 22 11:59:45 CEST 2020
On 2020-04-21 20:47, J. Gareth Moreton wrote:
Hi,
> As I mentioned in my future development post,
> do you think FPC could benefit from
> GetMemAligned and ReallocMemAligned routines?
> The internal functions could be used to help
> control such custom alignment in dynamic
> arrays.
Wouldn't it be better to use either some kind of global property or an
optional additional argument than completely new routines requiring
explicit handling not only from the end-user programs, but also from all
units which may in turn be involved in memory allocation (including
various containers etc.)?
Tomas
>
> On Tue 21/04/20 19:59 , Florian Klämpfl
> florian at freepascal.org sent:
>> Am 21.04.20 um 14:58 schrieb denisgolovan
> via fpc-devel:
>>
>> >> I think Gareth meant the address of V
>> instead (Pointer(@V)).
>> >>
>>
>> >> Regards,
>>
>> >> Sven
>>
>> >
>>
>> > Hm. I have no idea why anyone would take
> pointer
>> to pointer :)
>> >
>>
>> > BTW, Sven, what's your opinion on dynamic
> arrays
>> alignment problem?
>>
>>
>> It should be fixed/there should be a
> possibility to get them aligned
>>
>> properly. To be honest though, I did not
> look into it yet.
More information about the fpc-devel
mailing list