diff --git a/code/float.lisp b/code/float.lisp index 5cb3f302acbb35c794d2c10f26188948e93b3eb7..7d6e9bba623b9c3f9016705a7bc4a0218b68c54b 100644 --- a/code/float.lisp +++ b/code/float.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/float.lisp,v 1.20 1999/11/19 15:12:36 dtc Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/float.lisp,v 1.21 2000/05/06 17:21:16 dtc Exp $") ;;; ;;; ********************************************************************** ;;; @@ -189,16 +189,26 @@ (defconstant single-float-negative-epsilon (single-from-bits 0 (- vm:single-float-bias vm:single-float-digits) 1)) (defconstant short-float-negative-epsilon single-float-negative-epsilon) +#-(and long-float x86) (defconstant double-float-epsilon (double-from-bits 0 (- vm:double-float-bias (1- vm:double-float-digits)) 1)) +#+(and long-float x86) +(defconstant double-float-epsilon + (double-from-bits 0 (- vm:double-float-bias (1- vm:double-float-digits)) + (expt 2 42))) #-long-float (defconstant long-float-epsilon double-float-epsilon) #+(and long-float x86) (defconstant long-float-epsilon (long-from-bits 0 (- vm:long-float-bias (1- vm:long-float-digits)) (+ 1 (ash vm:long-float-hidden-bit 32)))) +#-(and long-float x86) (defconstant double-float-negative-epsilon (double-from-bits 0 (- vm:double-float-bias vm:double-float-digits) 1)) +#+(and long-float x86) +(defconstant double-float-negative-epsilon + (double-from-bits 0 (- vm:double-float-bias vm:double-float-digits) + (expt 2 42))) #-long-float (defconstant long-float-negative-epsilon double-float-negative-epsilon) #+(and long-float x86)