1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-20 20:50:53 -08:00
emacs/lisp/calc
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
..
calc-aent.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-alg.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-arith.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-bin.el Calc: allow infinite binary word size (bug#43764) 2020-10-13 11:29:01 +02:00
calc-comb.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-cplx.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-embed.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-ext.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-fin.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-forms.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-frac.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-funcs.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-graph.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-help.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-incom.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-keypd.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-lang.el Calc: revert to old precedence of '/' in (La)TeX input mode 2020-10-13 11:29:01 +02:00
calc-macs.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-map.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-math.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-menu.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-misc.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-mode.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-mtx.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-nlfit.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-poly.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
calc-prog.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-rewr.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-rules.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-sel.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-stat.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-store.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-stuff.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-trail.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-undo.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-units.el ; Prefer https to http in many URLs 2020-10-01 15:28:15 +02:00
calc-vec.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc-yank.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calc.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calcalg2.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calcalg3.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00
calccomp.el Use a square root character in calc displays 2020-09-15 18:03:50 +02:00
calcsel2.el * lisp/calc/: Use lexical scoping in all the files 2020-10-10 16:00:51 -04:00