[Lazarus] UTF8LengthFast returning incorrect results on AARCH64 (MacOS)

Martin Frb lazarus at mfriebe.de
Tue Dec 28 12:08:30 CET 2021

On 28/12/2021 11:52, Juha Manninen via lazarus wrote:
> On Tue, Dec 28, 2021 at 3:29 AM Noel Duffy via lazarus 
> <lazarus at lists.lazarus-ide.org> wrote:
>     So it appears to me that an unsigned pointer type is required in
>     UTFLengthFast.
> Can you please create a patch for UTFLengthFast. You can upload it 
> here or create a merge request in GitLab or anything.

I would like to see the generates assembler on M1, if that is possible?  
(for code with optimization off, as well as code with whatever 
optimization was used so far)

None the less, switching to "puint8" might be a good idea.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20211228/8cf98192/attachment.htm>

More information about the lazarus mailing list