-2004-04-07 Corinna Vinschen <corinna@vinschen.de>
+2004-04-08 Corinna Vinschen <corinna@vinschen.de>
+
+ * path.cc (hash_path_name): Replace hash algorithm with SDBM.
+
+2004-04-08 Corinna Vinschen <corinna@vinschen.de>
* fhandler.cc (fhandler_base::open): Set query access mode according
to query_open setting.
hash = cygheap->cwd.get_hash ();
if (name[0] == '.' && name[1] == '\0')
return hash;
- hash = (hash << 5) - hash + '\\';
+ hash = '\\' + (hash << 6) + (hash << 16) - hash;
}
}
do
{
int ch = cyg_tolower (*name);
- hash = (hash << 5) - hash + ch;
+ hash = ch + (hash << 6) + (hash << 16) - hash;
}
while (*++name != '\0' &&
!(*name == '\\' && (!name[1] || (name[1] == '.' && !name[2]))));