diff options
| author | Richard M. Stallman | 1993-05-31 07:19:04 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-31 07:19:04 +0000 |
| commit | 4124c39f4028f868b398149bc65cc7de6515261d (patch) | |
| tree | 39923349f5aaf9f2423ba4e703482a667e6895a7 | |
| parent | af1d3b64a2687ec2587193bb7f3827da2ea55dac (diff) | |
| download | emacs-4124c39f4028f868b398149bc65cc7de6515261d.tar.gz emacs-4124c39f4028f868b398149bc65cc7de6515261d.zip | |
(mod): Use cl-floor.
(rem): Use cl-truncate.
| -rw-r--r-- | lisp/cl.el | 8 |
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). |
| 1809 | That is, the remainder goes with the quotient produced by `floor'. | 1809 | That is, the remainder goes with the quotient produced by `cl-floor'. |
| 1810 | Emacs Lisp hint: | 1810 | Emacs Lisp hint: |
| 1811 | If you know that both arguments are positive, use `%' instead for speed." | 1811 | If 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). |
| 1817 | That is, the remainder goes with the quotient produced by `truncate'. | 1817 | That is, the remainder goes with the quotient produced by `cl-truncate'. |
| 1818 | Emacs Lisp hint: | 1818 | Emacs Lisp hint: |
| 1819 | If you know that both arguments are positive, use `%' instead for speed." | 1819 | If 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 |