[PATCHv2] SSE2/SSSE3 optimized version of get_checksum1() for x86-64

Wayne Davison wayne at opencoder.net
Thu May 21 21:42:58 UTC 2020


On Tue, May 19, 2020 at 7:29 AM Jorrit Jongma via rsync <
rsync at lists.samba.org> wrote:

> I've read up some more on the subject, and it seems the proper way to do
> this with GCC is g++ and target attributes. I've refactored the patch that
> way, and it indeed uses SSSE3 automatically on supporting CPUs, regardless
> of the build host, so this should be ideal both for home builders and
> distros.
>

Very cool stuff!  Sounds like this should be a nice improvement for x86
systems. I've tweaked your patch just a bit and changed it to where it is
disabled by default unless configured with --enable-sse2, just to be extra
cautious. Once it gets some validation testing we can change that to be
enabled by default.  Thanks!

As for xxhash support, the current version of that patch is in the patches
git repo (it hasn't been merged yet):

https://git.samba.org/?p=rsync-patches.git;a=blob_plain;f=xxhash.diff;hb=6f3c2cd839ccbae8dc74222f9f8a60aef0156d43


..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20200521/114aed7a/attachment.htm>


More information about the rsync mailing list