aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2013-06-20 07:15:42 -0700
committerPaul Eggert2013-06-20 07:15:42 -0700
commit89561f72e587677618afa2fd6962704e841e39e8 (patch)
tree9b790c6b916c853df24a72eebd505c38501ccec6 /doc
parent47199123698df3a14acb016c3869075b2d6012d5 (diff)
downloademacs-89561f72e587677618afa2fd6962704e841e39e8.tar.gz
emacs-89561f72e587677618afa2fd6962704e841e39e8.zip
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).
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/numbers.texi5
2 files changed, 4 insertions, 5 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 65fc76d15f5..c00d3392908 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12013-06-20 Paul Eggert <eggert@cs.ucla.edu>
2
3 * numbers.texi (Math Functions): Remove obsolete function log10.
4
12013-06-19 Stefan Monnier <monnier@iro.umontreal.ca> 52013-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * modes.texi (Mode Line Data, Properties in Mode): Advertise `keymap' 7 * modes.texi (Mode Line Data, Properties in Mode): Advertise `keymap'
diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi
index eeebac6bf72..2b6f31b670b 100644
--- a/doc/lispref/numbers.texi
+++ b/doc/lispref/numbers.texi
@@ -1156,11 +1156,6 @@ This function returns the logarithm of @var{arg}, with base
1156returns a NaN. 1156returns a NaN.
1157@end defun 1157@end defun
1158 1158
1159@defun log10 arg
1160This function returns the logarithm of @var{arg}, with base 10:
1161@code{(log10 @var{x})} @equiv{} @code{(log @var{x} 10)}.
1162@end defun
1163
1164@defun expt x y 1159@defun expt x y
1165This function returns @var{x} raised to power @var{y}. If both 1160This function returns @var{x} raised to power @var{y}. If both
1166arguments are integers and @var{y} is positive, the result is an 1161arguments are integers and @var{y} is positive, the result is an