diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-03-03 09:17:51 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-03-03 09:19:08 -0800 |
commit | 74f87fd111904e5156727c72590d6fc4f67e8366 (patch) | |
tree | f6802878c5105def6d6889d5b8f71e4fe9285b79 /lisp/emacs-lisp/warnings.el | |
parent | f1fe3fcfc568c1527714ff3a95e678816e2787d4 (diff) | |
download | emacs-74f87fd111904e5156727c72590d6fc4f67e8366.tar.gz emacs-74f87fd111904e5156727c72590d6fc4f67e8366.tar.bz2 emacs-74f87fd111904e5156727c72590d6fc4f67e8366.zip |
logb now works correctly on large integers
* admin/merge-gnulib (GNULIB_MODULES): Add count-leading-zeros.
* etc/NEWS: Document the change.
* lib/count-leading-zeros.c, lib/count-leading-zeros.h:
* m4/count-leading-zeros.m4: New files, copied from Gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* src/floatfns.c: Include count-leading-zeros.h.
(Flogb): Do not convert fixnum to float before taking the log,
as the rounding error can cause the answer to be off by 1.
* src/lisp.h (EMACS_UINT_WIDTH): New constant.
* test/src/floatfns-tests.el (logb-extreme-fixnum): New test.
Diffstat (limited to 'lisp/emacs-lisp/warnings.el')
0 files changed, 0 insertions, 0 deletions