summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/src/pj/hash.c')
-rw-r--r--pjlib/src/pj/hash.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/pjlib/src/pj/hash.c b/pjlib/src/pj/hash.c
index 226d680f..f2ea286a 100644
--- a/pjlib/src/pj/hash.c
+++ b/pjlib/src/pj/hash.c
@@ -76,26 +76,12 @@ PJ_DEF(pj_uint32_t) pj_hash_calc_tolower( pj_uint32_t hval,
{
long i;
-#if defined(PJ_HASH_USE_OWN_TOLOWER) && PJ_HASH_USE_OWN_TOLOWER != 0
- for (i=0; i<key->slen; ++i) {
- pj_uint8_t c = key->ptr[i];
- char lower;
- if (c & 64)
- lower = (char)(c | 32);
- else
- lower = (char)c;
- if (result)
- result[i] = lower;
- hval = hval * PJ_HASH_MULTIPLIER + lower;
- }
-#else
for (i=0; i<key->slen; ++i) {
char lower = (char)pj_tolower(key->ptr[i]);
if (result)
result[i] = lower;
hval = hval * PJ_HASH_MULTIPLIER + lower;
}
-#endif
return hval;
}