From 677aa50ad8e0fd30895d36cd4bd786ce9cdfd68d Mon Sep 17 00:00:00 2001 From: ram <ram> Date: Sat, 7 Jul 1990 13:10:58 +0000 Subject: [PATCH] Added some new FP constants. --- compiler/mips/parms.lisp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/compiler/mips/parms.lisp b/compiler/mips/parms.lisp index 604caaac4..fa518bbaf 100644 --- a/compiler/mips/parms.lisp +++ b/compiler/mips/parms.lisp @@ -7,7 +7,7 @@ ;;; Scott Fahlman (FAHLMAN@CMUC). ;;; ********************************************************************** ;;; -;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/parms.lisp,v 1.62 1990/07/04 18:58:51 wlott Exp $ +;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/parms.lisp,v 1.63 1990/07/07 13:10:58 ram Exp $ ;;; ;;; This file contains some parameterizations of various VM ;;; attributes for the MIPS. This file is separate from other stuff so @@ -87,6 +87,17 @@ (defconstant double-float-normal-exponent-max #x7FF) (defconstant double-float-hidden-bit (ash 1 20)) +(defconstant single-float-digits + (+ (byte-size single-float-significand-byte) 1)) + +(defconstant double-float-digits + (+ (byte-size double-float-significand-byte) word-bits 1)) + +(defun float-format-digits (format) + (ecase format + ((short-float single-float) single-float-digits) + ((double-float long-float) double-float-digits))) + ;;;; Description of the target address space. -- GitLab