]> git.eshelyaron.com Git - emacs.git/commit
Make logcount act like CL on negative arg
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 Sep 2017 22:36:52 +0000 (15:36 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 Sep 2017 22:38:14 +0000 (15:38 -0700)
commit8136df6a8cbf071266eb38f5baef005f4e9241a3
tree4ade7520c5be858be40b7939a0338e4a48288c85
parentd247e1d30abcb77665f829ca98a5bdef69ff4bc3
Make logcount act like CL on negative arg

Behaving like Common Lisp is less likely to lead to surprises,
as it yields the same answers on 32- vs 64-bit machines.
* doc/lispref/numbers.texi (Bitwise Operations):
Document behavior on negative integers.
* src/data.c (Flogcount):
Behave like Common Lisp for negative arguments.
* test/src/data-tests.el (data-tests-popcnt)
(data-tests-logcount): Test negative args too.
doc/lispref/numbers.texi
src/data.c
test/src/data-tests.el