util/hbitmap.c: Use ctpopl rather than reimplementing a local equivalent
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 3 Jun 2014 23:07:20 +0000 (00:07 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 10 Jun 2014 23:25:06 +0000 (00:25 +0100)
commit591b320ad046b2780c1b2841b836b50ba8192f02
tree2ba9ddd9749006fec105964c7bd43d9f34e971b2
parent6b24119b7f5b250119b67d93ea6d044500483e82
util/hbitmap.c: Use ctpopl rather than reimplementing a local equivalent

The function popcountl() in hbitmap.c is effectively a reimplementation
of what host-utils.h provides as ctpopl(). Use ctpopl() directly; this fixes
a failure to compile on NetBSD (whose strings.h erroneously exposes a
system popcountl() which clashes with this one).

Reported-by: Martin Husemann <martin@duskware.de>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
util/hbitmap.c