aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-31 07:19:04 +0000
committerRichard M. Stallman1993-05-31 07:19:04 +0000
commit4124c39f4028f868b398149bc65cc7de6515261d (patch)
tree39923349f5aaf9f2423ba4e703482a667e6895a7
parentaf1d3b64a2687ec2587193bb7f3827da2ea55dac (diff)
downloademacs-4124c39f4028f868b398149bc65cc7de6515261d.tar.gz
emacs-4124c39f4028f868b398149bc65cc7de6515261d.zip
(mod): Use cl-floor.
(rem): Use cl-truncate.
-rw-r--r--lisp/cl.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/cl.el b/lisp/cl.el
index 0e648633a52..e4777ef3794 100644
--- a/lisp/cl.el
+++ b/lisp/cl.el
@@ -1806,18 +1806,18 @@ DIVISOR defaults to 1. The remainder is produced as a second value."
1806 1806
1807(defun mod (number divisor) 1807(defun mod (number divisor)
1808 "Return remainder of X by Y (rounding quotient toward minus infinity). 1808 "Return remainder of X by Y (rounding quotient toward minus infinity).
1809That is, the remainder goes with the quotient produced by `floor'. 1809That is, the remainder goes with the quotient produced by `cl-floor'.
1810Emacs Lisp hint: 1810Emacs Lisp hint:
1811If you know that both arguments are positive, use `%' instead for speed." 1811If you know that both arguments are positive, use `%' instead for speed."
1812 (floor number divisor) 1812 (cl-floor number divisor)
1813 (cadr *mvalues-values*)) 1813 (cadr *mvalues-values*))
1814 1814
1815(defun rem (number divisor) 1815(defun rem (number divisor)
1816 "Return remainder of X by Y (rounding quotient toward zero). 1816 "Return remainder of X by Y (rounding quotient toward zero).
1817That is, the remainder goes with the quotient produced by `truncate'. 1817That is, the remainder goes with the quotient produced by `cl-truncate'.
1818Emacs Lisp hint: 1818Emacs Lisp hint:
1819If you know that both arguments are positive, use `%' instead for speed." 1819If you know that both arguments are positive, use `%' instead for speed."
1820 (truncate number divisor) 1820 (cl-truncate number divisor)
1821 (cadr *mvalues-values*)) 1821 (cadr *mvalues-values*))
1822 1822
1823;;; internal utilities 1823;;; internal utilities