From c5af9754ee30f5bbbe53bd094b8d1f2f5adb6ff4 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 24 Apr 1996 03:03:16 +0000 Subject: [PATCH] Move INT:->FLONUM from "arith" to "fixart" so that it will be available earlier in the cold-load sequence. --- v7/src/runtime/arith.scm | 7 ++----- v7/src/runtime/fixart.scm | 9 ++++++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/v7/src/runtime/arith.scm b/v7/src/runtime/arith.scm index 2d557dcc2..ffcb206f8 100644 --- a/v7/src/runtime/arith.scm +++ b/v7/src/runtime/arith.scm @@ -1,8 +1,8 @@ #| -*-Scheme-*- -$Id: arith.scm,v 1.33 1995/11/03 22:44:19 adams Exp $ +$Id: arith.scm,v 1.34 1996/04/24 03:03:16 cph Exp $ -Copyright (c) 1989-94 Massachusetts Institute of Technology +Copyright (c) 1989-96 Massachusetts Institute of Technology This material was developed by the Scheme project at the Massachusetts Institute of Technology, Department of Electrical Engineering and @@ -52,9 +52,6 @@ MIT in each case. |# (define-integrable (int:bignum? object) (object-type? (ucode-type big-fixnum) object)) -(define-integrable (int:->flonum n) - (integer->flonum n #b10)) - (define-integrable (make-ratnum n d) (system-pair-cons (ucode-type ratnum) n d)) diff --git a/v7/src/runtime/fixart.scm b/v7/src/runtime/fixart.scm index a5e07b0ef..3d55b0386 100644 --- a/v7/src/runtime/fixart.scm +++ b/v7/src/runtime/fixart.scm @@ -1,8 +1,8 @@ #| -*-Scheme-*- -$Id: fixart.scm,v 1.1 1994/12/09 02:55:41 adams Exp $ +$Id: fixart.scm,v 1.2 1996/04/24 03:03:00 cph Exp $ -Copyright (c) 1988-1994 Massachusetts Institute of Technology +Copyright (c) 1988-96 Massachusetts Institute of Technology This material was developed by the Scheme project at the Massachusetts Institute of Technology, Department of Electrical Engineering and @@ -128,4 +128,7 @@ MIT in each case. |# (not (int:> x y))) (define-integrable (int:>= x y) - (not (int:< x y))) \ No newline at end of file + (not (int:< x y))) + +(define-integrable (int:->flonum n) + ((ucode-primitive integer->flonum 2) n #b10)) \ No newline at end of file -- 2.25.1