MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / siptlw

Function siptlw

src/siphash.c:50–56  ·  view source on GitHub ↗

Fast tolower() alike function that does not care about locale * but just returns a-z instead of A-Z. */

Source from the content-addressed store, hash-verified

48/* Fast tolower() alike function that does not care about locale
49 * but just returns a-z instead of A-Z. */
50int siptlw(int c) {
51 if (c >= 'A' && c <= 'Z') {
52 return c+('a'-'A');
53 } else {
54 return c;
55 }
56}
57
58/* Test of the CPU is Little Endian and supports not aligned accesses.
59 * Two interesting conditions to speedup the function that happen to be

Callers 1

siphash_nocaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected