Skip to content
Snippets Groups Projects
Commit caea7799 authored by dtc's avatar dtc
Browse files

Check the accrued exceptions (sticky-bits) within

with-float-traps-masked; more reliable than the exceptions-byte on
many ports.
parent 58a60f91
No related branches found
No related tags found
No related merge requests found
......@@ -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/irrat.lisp,v 1.22 1997/08/30 18:29:21 dtc Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/irrat.lisp,v 1.23 1997/09/08 00:17:42 dtc Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -817,7 +817,7 @@ and Y are coerced to single-float."
(setf rho #.ext:double-float-positive-infinity))
((let ((threshold #.(/ least-positive-double-float
double-float-epsilon))
(traps (ldb vm::float-exceptions-byte
(traps (ldb vm::float-sticky-bits
(vm:floating-point-modes))))
;; Overflow raised or (underflow raised and rho <
;; lambda/eps)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment