Nikos Mavrogiannopoulos <[email protected]> writes:

> btw. the current _salsa20_core takes rounds as a variable. Wouldn't it
> allow for better optimizations (loop unrolling actually) if that was a
> static function, or that doesn't matter much?

I don't think it matters very much. But I haven't tried it.

My understanding is that this type of looping branches are handled
well by the branch predictor in current cpu:s. (In contrast to
unpredictable branches, which cost lots of cycles).

And since a single iteration should be 60-100 instructions, loop
overhead should be almost negligible. Unrolling is more important for
small loops.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to