Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 May 2025 03:03:16 +0000
From:      Alexey Dokuchaev <danfe@freebsd.org>
To:        Robert Clausecker <fuz@freebsd.org>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: 8b4684afcde3 - main - lib/libmd: add optimised SHA1 implementations for amd64
Message-ID:  <aCVZdOS09EkCdjqG@FreeBSD.org>
In-Reply-To: <202505142340.54ENecbI000166@gitrepo.freebsd.org>
References:  <202505142340.54ENecbI000166@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 14, 2025 at 11:40:38PM +0000, Robert Clausecker wrote:
> commit 8b4684afcde3930eb49490f0b8431c4cb2ad9a46
> 
>   lib/libmd: add optimised SHA1 implementations for amd64
> 
>   Three implementations are provided: one using just scalar
>   instructions, one using AVX2, and one using the SHA instructions
>   (SHANI).  The AVX2 version uses a complicated multi-block carry
>   scheme described in an Intel whitepaper

Sounds pretty cool!  How feasible would be coming up with AVX-only code?
My CPU does not support AVX2 but I often need to compute SHA1 sums.

./danfe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aCVZdOS09EkCdjqG>