From: Chris Hanson Date: Fri, 7 May 1999 19:47:25 +0000 (+0000) Subject: Implement FIX:MIN and FIX:MAX. X-Git-Tag: 20090517-FFI~4553 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=7f10bd6f01f4f0255076499a40cbb0a79b734443;p=mit-scheme.git Implement FIX:MIN and FIX:MAX. --- diff --git a/v7/src/runtime/fixart.scm b/v7/src/runtime/fixart.scm index 2c80f3b22..08c078033 100644 --- 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)))