[Lazarus] Faster than popcnt [[Re: UTF8LengthFast returning incorrect results on AARCH64 (MacOS)]]

Bart bartjunk64 at gmail.com
Wed Dec 29 00:00:55 CET 2021


On Tue, Dec 28, 2021 at 11:35 PM Martin Frb via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

> I have a core I7-8600
> The diff between the old code and popcnt is less significant.
>
> old: 715
> pop: 695
>
> But there is a 3rd way, that is faster.
> add: 610

Not surprising that you should come up with a faster solution.
IIRC you won both speed contests I had on the forum ;-)

Feel free to implement it in LazUtf8.
-- 
Bart


More information about the lazarus mailing list