diff options
| author | Paul Eggert | 2017-03-03 09:17:51 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-03-03 09:19:08 -0800 |
| commit | 74f87fd111904e5156727c72590d6fc4f67e8366 (patch) | |
| tree | f6802878c5105def6d6889d5b8f71e4fe9285b79 /admin | |
| parent | f1fe3fcfc568c1527714ff3a95e678816e2787d4 (diff) | |
| download | emacs-74f87fd111904e5156727c72590d6fc4f67e8366.tar.gz 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 'admin')
| -rwxr-xr-x | admin/merge-gnulib | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/merge-gnulib b/admin/merge-gnulib index 20a3240ea89..7e7971fe881 100755 --- a/admin/merge-gnulib +++ b/admin/merge-gnulib | |||
| @@ -27,7 +27,8 @@ GNULIB_URL=git://git.savannah.gnu.org/gnulib.git | |||
| 27 | 27 | ||
| 28 | GNULIB_MODULES=' | 28 | GNULIB_MODULES=' |
| 29 | alloca-opt binary-io byteswap c-ctype c-strcase | 29 | alloca-opt binary-io byteswap c-ctype c-strcase |
| 30 | careadlinkat close-stream count-one-bits count-trailing-zeros | 30 | careadlinkat close-stream |
| 31 | count-leading-zeros count-one-bits count-trailing-zeros | ||
| 31 | crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 | 32 | crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 |
| 32 | dtoastr dtotimespec dup2 environ execinfo faccessat | 33 | dtoastr dtotimespec dup2 environ execinfo faccessat |
| 33 | fcntl fcntl-h fdatasync fdopendir | 34 | fcntl fcntl-h fdatasync fdopendir |