Changeset 3552
- Timestamp:
- 09/02/03 16:15:56 (19 years ago)
- Location:
- trunk/j/src/org/armedbear/lisp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/lisp/autoloads.lisp
r3499 r3552 2 2 ;;; 3 3 ;;; Copyright (C) 2003 Peter Graves 4 ;;; $Id: autoloads.lisp,v 1.1 2 2003-08-24 19:19:01piso Exp $4 ;;; $Id: autoloads.lisp,v 1.13 2003-09-02 16:15:56 piso Exp $ 5 5 ;;; 6 6 ;;; This program is free software; you can redistribute it and/or … … 73 73 (autoload 'make-string) 74 74 (autoload 'make-pathname) 75 (autoload '(floor ceiling round rem ftruncate ffloor fceiling fround75 (autoload '(floor ceiling round rem mod ftruncate ffloor fceiling fround 76 76 rational rationalize) 77 77 "numbers.lisp") -
trunk/j/src/org/armedbear/lisp/numbers.lisp
r3525 r3552 2 2 ;;; 3 3 ;;; Copyright (C) 2003 Peter Graves 4 ;;; $Id: numbers.lisp,v 1. 7 2003-08-26 02:28:22piso Exp $4 ;;; $Id: numbers.lisp,v 1.8 2003-09-02 16:15:20 piso Exp $ 5 5 ;;; 6 6 ;;; This program is free software; you can redistribute it and/or … … 82 82 83 83 84 (defun mod (number divisor) 85 "Returns second result of FLOOR." 86 (let ((rem (rem number divisor))) 87 (if (and (not (zerop rem)) 88 (if (minusp divisor) 89 (plusp number) 90 (minusp number))) 91 (+ rem divisor) 92 rem))) 93 94 84 95 (defun ftruncate (number &optional (divisor 1)) 85 96 (multiple-value-bind (tru rem) (truncate number divisor)
Note: See TracChangeset
for help on using the changeset viewer.