diff options
| author | Jim Blandy | 1993-05-22 22:09:25 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-22 22:09:25 +0000 |
| commit | 758c80c0f394209f07624fe2342b11c1d1031cb2 (patch) | |
| tree | d47e279c28b5baaf2c8304dfc48726adb38994f4 /lisp | |
| parent | 2d6e26196ef3a2d49cea410b385a0fcbb20b330d (diff) | |
| download | emacs-758c80c0f394209f07624fe2342b11c1d1031cb2.tar.gz emacs-758c80c0f394209f07624fe2342b11c1d1031cb2.zip | |
* cl.el (cl-floor, cl-ceiling, cl-truncate, cl-round): Renamed
from floor, ceiling, truncate, and round; the old names conflict
with built-in functions.
Diffstat (limited to 'lisp')
| -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 b897603ab47..2d2179b78bc 100644 --- a/lisp/cl.el +++ b/lisp/cl.el | |||
| @@ -1724,7 +1724,7 @@ equal to the real square root of the argument." | |||
| 1724 | done (or (= new approx) (= new (+ approx 1))) | 1724 | done (or (= new approx) (= new (+ approx 1))) |
| 1725 | approx new))))) | 1725 | approx new))))) |
| 1726 | 1726 | ||
| 1727 | (defun floor (number &optional divisor) | 1727 | (defun cl-floor (number &optional divisor) |
| 1728 | "Divide DIVIDEND by DIVISOR, rounding toward minus infinity. | 1728 | "Divide DIVIDEND by DIVISOR, rounding toward minus infinity. |
| 1729 | DIVISOR defaults to 1. The remainder is produced as a second value." | 1729 | DIVISOR defaults to 1. The remainder is produced as a second value." |
| 1730 | (cond ((and (null divisor) ; trivial case | 1730 | (cond ((and (null divisor) ; trivial case |
| @@ -1744,7 +1744,7 @@ DIVISOR defaults to 1. The remainder is produced as a second value." | |||
| 1744 | (let ((q (- (+ q 1)))) | 1744 | (let ((q (- (+ q 1)))) |
| 1745 | (values q (- number (* q divisor))))))))))) | 1745 | (values q (- number (* q divisor))))))))))) |
| 1746 | 1746 | ||
| 1747 | (defun ceiling (number &optional divisor) | 1747 | (defun cl-ceiling (number &optional divisor) |
| 1748 | "Divide DIVIDEND by DIVISOR, rounding toward plus infinity. | 1748 | "Divide DIVIDEND by DIVISOR, rounding toward plus infinity. |
| 1749 | DIVISOR defaults to 1. The remainder is produced as a second value." | 1749 | DIVISOR defaults to 1. The remainder is produced as a second value." |
| 1750 | (cond ((and (null divisor) ; trivial case | 1750 | (cond ((and (null divisor) ; trivial case |
| @@ -1761,7 +1761,7 @@ DIVISOR defaults to 1. The remainder is produced as a second value." | |||
| 1761 | (t | 1761 | (t |
| 1762 | (values (- q) (+ number (* q divisor))))))))) | 1762 | (values (- q) (+ number (* q divisor))))))))) |
| 1763 | 1763 | ||
| 1764 | (defun truncate (number &optional divisor) | 1764 | (defun cl-truncate (number &optional divisor) |
| 1765 | "Divide DIVIDEND by DIVISOR, rounding toward zero. | 1765 | "Divide DIVIDEND by DIVISOR, rounding toward zero. |
| 1766 | DIVISOR defaults to 1. The remainder is produced as a second value." | 1766 | DIVISOR defaults to 1. The remainder is produced as a second value." |
| 1767 | (cond ((and (null divisor) ; trivial case | 1767 | (cond ((and (null divisor) ; trivial case |
| @@ -1778,7 +1778,7 @@ DIVISOR defaults to 1. The remainder is produced as a second value." | |||
| 1778 | (t ;same as ceiling | 1778 | (t ;same as ceiling |
| 1779 | (values (- q) (+ number (* q divisor))))))))) | 1779 | (values (- q) (+ number (* q divisor))))))))) |
| 1780 | 1780 | ||
| 1781 | (defun round (number &optional divisor) | 1781 | (defun cl-round (number &optional divisor) |
| 1782 | "Divide DIVIDEND by DIVISOR, rounding to nearest integer. | 1782 | "Divide DIVIDEND by DIVISOR, rounding to nearest integer. |
| 1783 | DIVISOR defaults to 1. The remainder is produced as a second value." | 1783 | DIVISOR defaults to 1. The remainder is produced as a second value." |
| 1784 | (cond ((and (null divisor) ; trivial case | 1784 | (cond ((and (null divisor) ; trivial case |