mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-27 23:25:45 +03:00
static_map.h: fix lowercase convert (#806)
* More readability in convert lowercase Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru> Co-authored-by: Artem Golubikhin
This commit is contained in:
parent
f23498bef7
commit
527d0819b9
@ -229,8 +229,8 @@ protected:
|
||||
if (cpuinfo.sse4_2) {
|
||||
while (*pcc) {
|
||||
char cc = *(pcc++);
|
||||
if (cc >= 'A' || cc <= 'Z') {
|
||||
cc |= 0x20;
|
||||
if (cc >= 'A' && cc <= 'Z') {
|
||||
cc = (cc - 'A') + 'a';
|
||||
}
|
||||
cksum = crc32c_t8_sse(cksum, cc);
|
||||
}
|
||||
@ -240,8 +240,8 @@ protected:
|
||||
{
|
||||
while (*pcc) {
|
||||
char cc = *(pcc++);
|
||||
if (cc >= 'A' || cc <= 'Z') {
|
||||
cc |= 0x20;
|
||||
if (cc >= 'A' && cc <= 'Z') {
|
||||
cc = (cc - 'A') + 'a';
|
||||
}
|
||||
cksum = crc32c_t8_nosse(cksum, cc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user