]> git.eshelyaron.com Git - emacs.git/commit
Add log2 support and make log10 obsolete for consistency.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 20 Jun 2013 14:15:42 +0000 (07:15 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 20 Jun 2013 14:15:42 +0000 (07:15 -0700)
commit89561f72e587677618afa2fd6962704e841e39e8
tree9b790c6b916c853df24a72eebd505c38501ccec6
parent47199123698df3a14acb016c3869075b2d6012d5
Add log2 support and make log10 obsolete for consistency.

* configure.ac (log2): Check for this function.
* doc/lispref/numbers.texi (Math Functions): Remove obsolete function log10.
* lisp/subr.el (log10): Move here from C code, and declare as obsolete.
All uses of (log10 X) replaced with (log X 10).
* src/floatfns.c (Flog) [HAVE_LOG2]: Use log2 if available and if the
base is 2; this is more accurate.
(Flog10): Move to Lisp (marked obsolete there).
12 files changed:
ChangeLog
configure.ac
doc/lispref/ChangeLog
doc/lispref/numbers.texi
etc/NEWS
lisp/ChangeLog
lisp/allout.el
lisp/calc/calc.el
lisp/subr.el
lisp/textmodes/rst.el
src/ChangeLog
src/floatfns.c