Add simple integer-only pow() implementation
commite01fdc3dba36336bf4acbbf5ea1e3f7ac9c6fb6a
authorDan McGee <dan@archlinux.org>
Fri, 3 Feb 2012 04:36:46 +0000 (2 22:36 -0600)
committerDan McGee <dan@archlinux.org>
Fri, 3 Feb 2012 14:56:17 +0000 (3 08:56 -0600)
treeec848a24dad0b524e4759051d65743e233fdb38b
parente8db984ce5997ffabafab2584fa7f00789ff3afd
Add simple integer-only pow() implementation

We hardly need the complexity (or slowness) provided by the libm power
function; add a super-cheap one that suits our needs and is specialized
for the values we plan on passing in.

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