Optimize circular buffer to avoid modulo
authorRose <83477269+AtariDreams@users.noreply.github.com>
Tue, 19 Dec 2023 16:19:38 +0000 (11:19 -0500)
committerTomas Mraz <tomas@openssl.org>
Fri, 22 Dec 2023 13:45:55 +0000 (14:45 +0100)
commitd6e4056805f54bb1a0ef41fa3a6a35b70c94edba
tree58b57d150d3350b7702df80bf0d327a6474fa528
parent6e155858d785297bd8b51f667bc440f4e7c17bfb
Optimize circular buffer to avoid modulo

CLA: trivial

Avoid doing the division via modulo where possible.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23097)
crypto/bio/bio_dump.c