projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f372b4
)
Implement FIX:MIN and FIX:MAX.
author
Chris Hanson
<org/chris-hanson/cph>
Fri, 7 May 1999 19:47:25 +0000
(19:47 +0000)
committer
Chris Hanson
<org/chris-hanson/cph>
Fri, 7 May 1999 19:47:25 +0000
(19:47 +0000)
v7/src/runtime/fixart.scm
patch
|
blob
|
history
diff --git
a/v7/src/runtime/fixart.scm
b/v7/src/runtime/fixart.scm
index 2c80f3b229d0a48c018200b3d8b88a9a4d535ec5..08c0780335da11f6f43947de63892448928b6d8e 100644
(file)
--- a/
v7/src/runtime/fixart.scm
+++ b/
v7/src/runtime/fixart.scm
@@
-1,6
+1,6
@@
#| -*-Scheme-*-
-$Id: fixart.scm,v 1.
3 1999/01/02 06:11:34
cph Exp $
+$Id: fixart.scm,v 1.
4 1999/05/07 19:47:25
cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
@@
-111,6
+111,12
@@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
(define-integrable (fix:>= x y)
(not (fix:< x y)))
+(define (fix:min n m)
+ (if (fix:< n m) n m))
+
+(define (fix:max n m)
+ (if (fix:> n m) n m))
+
(define-integrable (int:<= x y)
(not (int:> x y)))