From 7f10bd6f01f4f0255076499a40cbb0a79b734443 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 7 May 1999 19:47:25 +0000 Subject: [PATCH] Implement FIX:MIN and FIX:MAX. --- v7/src/runtime/fixart.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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))) -- 2.25.1