1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00
guile/module/rnrs/arithmetic
Mark H Weaver a1c9ecf0a4 Fix 'fxbit-count' for negative arguments.
Reported by Göran Weinholt <goran@weinholt.se>.

* module/rnrs/arithmetic/fixnums.scm (fxbit-count): If the argument is
  negative, return the 'bitwise-not' of the result of 'logcount', as per
  R6RS.  Previously, 'fxbit-count' was identical to 'logcount'.

* test-suite/tests/r6rs-arithmetic-fixnums.test (fxbit-count): Add test.
2013-07-16 12:06:45 -04:00
..
bitwise.scm Fix 'bitwise-bit-count' for negative arguments. 2013-07-14 14:08:33 -04:00
fixnums.scm Fix 'fxbit-count' for negative arguments. 2013-07-16 12:06:45 -04:00
flonums.scm Flonum operations always return flonums. 2013-07-16 04:43:07 -04:00