Re: [fpc-devel] ARM/AARCH64 work

2021-04-26 Thread J. Gareth Moreton via fpc-devel
Submitted a patch with the "magic division" and a second patch with a new bench test to showcase the improvements. I hope it is to your satisfaction. https://bugs.freepascal.org/view.php?id=38806 Gareth aka. Kit On Mon 26/04/21 16:25 , "J. Gareth Moreton" gar...@moreton-family.com sent: > I

Re: [fpc-devel] ARM/AARCH64 work

2021-04-26 Thread J. Gareth Moreton via fpc-devel
I meant to say "I'm not sure" at the end there. The joys of writing an e-mail on the phone! Gareth aka. KIt On Mon 26/04/21 15:14 , "J. Gareth Moreton via fpc-devel" fpc-devel@lists.freepascal.org sent: > Indeed. I'm reusing the code that generates > > the magic constant for me and any

Re: [fpc-devel] ARM/AARCH64 work

2021-04-26 Thread J. Gareth Moreton via fpc-devel
Indeed. I'm reusing the code that generates the magic constant for me and any additional flags. I've also fixed the bug that caused the failure in my test. Just doing some final cheeks and improving my bench test. It might be possible to make more code cross platform later on. I'mm not due.

Re: [fpc-devel] ARM/AARCH64 work

2021-04-26 Thread Florian Klämpfl via fpc-devel
> Am 26.04.2021 um 08:09 schrieb J. Gareth Moreton via fpc-devel > : > > and the other is implementing "magic division" > where division by a constant is replaced with a multiplication. You are aware there is code for arm 32 bit and e.g. x86 which can most likely be reused/adapted? It

[fpc-devel] ARM/AARCH64 work

2021-04-26 Thread J. Gareth Moreton via fpc-devel
HI everyone, So a quick update on my current work in progress on ARM/AArch64. First the annoying news, besides the broken laptop... I've mislaid my ARM (32-bit) MicroSD card for the Raspberry Pi, so I can't test on that platform for the moment until I find it again. Hopefully I can find