summaryrefslogtreecommitdiff
path: root/sysutils/xentools45/patches/patch-qemu-xen_util_hbitmap.c
blob: a74b35f3211d9c496c316c58555434e847ba62f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-qemu-xen_util_hbitmap.c,v 1.1 2015/01/20 16:42:13 bouyer Exp $

conflits with the popcountl from <strings.h>, no need to redefine one.

--- qemu-xen/util/hbitmap.c.orig	2015-01-19 16:33:58.000000000 +0100
+++ qemu-xen/util/hbitmap.c	2015-01-19 16:40:45.000000000 +0100
@@ -92,11 +92,6 @@
     unsigned long *levels[HBITMAP_LEVELS];
 };
 
-static inline int popcountl(unsigned long l)
-{
-    return BITS_PER_LONG == 32 ? ctpop32(l) : ctpop64(l);
-}
-
 /* Advance hbi to the next nonzero word and return it.  hbi->pos
  * is updated.  Returns zero if we reach the end of the bitmap.
  */