diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2020-12-07 10:15:59 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2020-12-07 13:18:00 +0100 |
commit | d6d871a1a266421f1c47df57bde5b0da54dfe352 (patch) | |
tree | 5224be7713ad8aef248c884f5dc842672320abd9 /lisp/emacs-lisp | |
parent | 5d04ee50853adbcb45c5f7bc980ee06a7eb23e5e (diff) | |
download | emacs-d6d871a1a266421f1c47df57bde5b0da54dfe352.tar.gz emacs-d6d871a1a266421f1c47df57bde5b0da54dfe352.tar.bz2 emacs-d6d871a1a266421f1c47df57bde5b0da54dfe352.zip |
Calc: simplify integer log2 and power of 2
We have bignums and fast primitives now; no caches are needed.
* lisp/calc/calc-bin.el (math-power-of-2-cache)
(math-big-power-of-2-cache): Remove.
(math-power-of-2, math-integer-log2): Simplify.
(calcFunc-ash): Don't call math-power-of-2 with negative argument.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions