Re: [PATCH] lib/crypto: blake2b: Limit frame size workaround to GCC < 12.2 on i386
From: Jason A. Donenfeld
Date: Mon Nov 24 2025 - 12:16:00 EST
On Mon, Nov 24, 2025 at 10:08 AM david laight <david.laight@xxxxxxxxxx> wrote:
> > How about we roll up the BLAKE2b rounds loop if !CONFIG_64BIT?
>
> I do wonder about the real benefit of some of the massive loop unrolling
> that happens in a lot of these algorithms (not just blake2b).
I remember looking at this in the context of blake2s, with two paths,
depending on CONFIG_CC_OPTIMIZE_FOR_SIZE, but the savings didn't seem
enough for the performance hit. It might be platform specific though.
I guess try it and post numbers, and that'll either be a compelling
reason to adjust it or still "meh"?
Jason