X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fppc%2Fparms.lisp;h=3f2a52c7d388555a421ddcba18c2ab75ac858fc9;hb=d75b4eb603f1e9e366997c8e378fe0ae0d79b5d9;hp=5b87bcc74b1df470d6c047576f8ec412c4e2d2b4;hpb=db0691b05cc99ce010ecae78bb532b594aea1859;p=sbcl.git diff --git a/src/compiler/ppc/parms.lisp b/src/compiler/ppc/parms.lisp index 5b87bcc..3f2a52c 100644 --- a/src/compiler/ppc/parms.lisp +++ b/src/compiler/ppc/parms.lisp @@ -54,10 +54,23 @@ (def!constant float-round-to-positive 2) (def!constant float-round-to-negative 3) -(defconstant-eqx float-rounding-mode (byte 2 0) #'equalp) ; RD -(defconstant-eqx float-sticky-bits (byte 10 19) #'equalp) -(defconstant-eqx float-traps-byte (byte 6 3) #'equalp) -(defconstant-eqx float-exceptions-byte (byte 5 0) #'equalp) ; cexc +(defconstant-eqx float-rounding-mode (byte 2 0) #'equalp) ; RD +;;; FIXME I: Beware, all ye who trespass here. Despite its name, +;;; FLOAT-STICKY-BITS is not the byte specifier for sticky bits in the +;;; floating point control word. It is more like "accrued exceptions" +;;; where FLOAT-EXCEPTIONS-BYTE is "current exceptions". Consequently, +;;; on architectures where there is no "current exceptions" +;;; FLOAT-EXCEPTIONS-BYTE and FLOAT-STICKY-BITS had better be the +;;; same. +;;; +;;; FIXME II: So, I've now documented this in comments in the PowerPC +;;; tree. This may not make it easy to find for when new architectures +;;; get backends written... +;;; +;;; CSR, 2002-06-11 +(defconstant-eqx float-sticky-bits (byte 5 25) #'equalp) +(defconstant-eqx float-traps-byte (byte 5 3) #'equalp) +(defconstant-eqx float-exceptions-byte (byte 5 25) #'equalp) ; cexc (def!constant float-fast-bit 2) ; Non-IEEE mode