1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-30 10:11:47 -07:00
emacs/doc
Mattias Engdegård cf40795888 Calc: allow infinite binary word size (bug#43764)
Setting the word size ("b w") to 0 removes the word size clipping for
all bit operations (effectively as if a word size of -∞ had been set).
Rotation is disallowed; logical and arithmetic shifts behave
identically.

After a suggestion by Vincent Belaïche.

* lisp/calc/calc-bin.el (calc-word-size, math-binary-arg)
(math-binary-modulo-args, calcFunc-lsh, calcFunc-ash, calcFunc-rot)
(math-clip, math-format-twos-complement): Allow a word size of 0,
meaning -∞.
* test/lisp/calc/calc-tests.el
(calc-tests--not, calc-tests--and, calc-tests--or, calc-tests--xor)
(calc-tests--diff): New functions.
(calc-tests--clip, calc-tests--rot, calc-shift-binary): Extend to
cover word size 0.
(calc-bit-ops): New test.
* doc/misc/calc.texi (Binary Functions): Update manual.
* etc/NEWS: Announce the change.
2020-10-13 11:29:01 +02:00
..
emacs Add cycling commands to outline 2020-10-13 05:14:21 +02:00
lispintro ; shorten https://lists.gnu.org/archive/html/... links 2020-10-09 12:23:02 +02:00
lispref Allow creating unibyte strings from Emacs modules 2020-10-13 06:51:06 +02:00
man Fix man page title lines and timestamps 2020-10-12 20:59:14 +02:00
misc Calc: allow infinite binary word size (bug#43764) 2020-10-13 11:29:01 +02:00