blob: c4f267e7cbfe267a49857df7a8719213b4eaebd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-ao,v 1.2 2010/02/10 21:56:41 asau Exp $
Avoid conflict with library function.
--- src/pl-arith.c.orig 2009-10-19 17:00:42.000000000 +0400
+++ src/pl-arith.c 2009-10-20 08:54:57.000000000 +0400
@@ -2268,7 +2268,7 @@
static int
-popcount64(int64_t i)
+ar_popcount64(int64_t i)
{ int c;
size_t j;
int64_t m = LL(1);
@@ -2292,7 +2292,7 @@
if ( n1->value.i < 0 )
return notLessThanZero("popcount", 1, n1);
- r->value.i = popcount64(n1->value.i);
+ r->value.i = ar_popcount64(n1->value.i);
r->type = V_INTEGER;
succeed;
#ifdef O_GMP
|