tolower: refine the tolower code to avoid a memory access
authorPauli <pauli@openssl.org>
Thu, 19 May 2022 02:23:55 +0000 (12:23 +1000)
committerPauli <pauli@openssl.org>
Sun, 22 May 2022 23:51:28 +0000 (09:51 +1000)
commit286053fc8f78e34828a576830ef879c021640aee
tree8d4c8924c2c8c74f78d887de9fd84ba35b24424e
parent4d02d500aac80c136e3d6582b908e0fab77bbf42
tolower: refine the tolower code to avoid a memory access

This improves the performance of this function and the ones that rely on it
(ossl_lh_strcasehash primarily).

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/18344)
crypto/ctype.c
include/crypto/ctype.h