HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
072e6de
)
(scm_logcount): Use mpz_com, not mpz_neg.
author
Kevin Ryde
<user42@zip.com.au>
Mon, 5 May 2003 23:01:30 +0000
(23:01 +0000)
committer
Kevin Ryde
<user42@zip.com.au>
Mon, 5 May 2003 23:01:30 +0000
(23:01 +0000)
libguile/numbers.c
patch
|
blob
|
blame
|
history
diff --git
a/libguile/numbers.c
b/libguile/numbers.c
index
602682d
..
16e7718
100644
(file)
--- a/
libguile/numbers.c
+++ b/
libguile/numbers.c
@@
-1387,7
+1387,7
@@
SCM_DEFINE (scm_logcount, "logcount", 1, 0, 0,
{
mpz_t z_n;
mpz_init (z_n);
- mpz_
neg
(z_n, SCM_I_BIG_MPZ (n));
+ mpz_
com
(z_n, SCM_I_BIG_MPZ (n));
scm_remember_upto_here_1 (n);
count = mpz_popcount (z_n);
mpz_clear (z_n);