Add hash_sdbm function
commitdbf59a6b141213b0afc962c71347eb83f8bcab73
authorDan McGee <dan@archlinux.org>
Tue, 14 Dec 2010 17:56:32 +0000 (14 11:56 -0600)
committerDan McGee <dan@archlinux.org>
Tue, 14 Dec 2010 17:56:32 +0000 (14 11:56 -0600)
tree924f24750b5c6a9abd32ce349b111714b02748da
parentd1d163c5a3627675e4d063d196ea2b2255507cc8
Add hash_sdbm function

This is prepping for the addition of a hash field to each package to greatly
speed up the string comparisons we frequently do on package name in
_alpm_pkg_find.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/util.c
lib/libalpm/util.h