Simplify hash function to a single multiplication
commit39cb865e71432fbce826d7526b1006be0e036761
authorDan McGee <dan@archlinux.org>
Thu, 29 Dec 2011 17:24:38 +0000 (29 11:24 -0600)
committerDan McGee <dan@archlinux.org>
Sun, 1 Jan 2012 03:03:24 +0000 (31 21:03 -0600)
treeec001cfec042f3de231395c634d3317ff9b45358
parentb264fb9e9ddcc31dc8782390309421965e507383
Simplify hash function to a single multiplication

More than likely the compiler will do the three operation breakdown we
had here before (2 shifts + subtraction), but let the compiler do the
optimizations and make the actual operation more obvious. This actually
slightly shrinks the function binary size, likely due to instruction
reordering or something.

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