summaryrefslogtreecommitdiff
path: root/lisp/=cl.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-05-31 07:19:04 +0000
committerRichard M. Stallman <rms@gnu.org>1993-05-31 07:19:04 +0000
commit4b36332501ecdb18b52b46cb4715c0bed391c6a5 (patch)
tree80e781b33ef570ef1b5f89e5e6cf3de80699765e /lisp/=cl.el
parent25c753db55dcb5d2e935bffd807a0b0c9558a7cc (diff)
downloademacs-4b36332501ecdb18b52b46cb4715c0bed391c6a5.tar.gz
(mod): Use cl-floor.
(rem): Use cl-truncate.
Diffstat (limited to 'lisp/=cl.el')
-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."
(defun mod (number divisor)
"Return remainder of X by Y (rounding quotient toward minus infinity).
-That is, the remainder goes with the quotient produced by `floor'.
+That is, the remainder goes with the quotient produced by `cl-floor'.
Emacs Lisp hint:
If you know that both arguments are positive, use `%' instead for speed."
- (floor number divisor)
+ (cl-floor number divisor)
(cadr *mvalues-values*))
(defun rem (number divisor)
"Return remainder of X by Y (rounding quotient toward zero).
-That is, the remainder goes with the quotient produced by `truncate'.
+That is, the remainder goes with the quotient produced by `cl-truncate'.
Emacs Lisp hint:
If you know that both arguments are positive, use `%' instead for speed."
- (truncate number divisor)
+ (cl-truncate number divisor)
(cadr *mvalues-values*))
;;; internal utilities