0.7.3.18:
[sbcl.git] / src / compiler / alpha / parms.lisp
index 143db40..872102d 100644 (file)
 
 (eval-when  (:compile-toplevel :load-toplevel :execute)
 
-(defconstant n-word-bits 32
+(def!constant n-word-bits 32
   #!+sb-doc
   "Number of bits per word where a word holds one lisp descriptor.")
 
-(defconstant n-byte-bits 8
+(def!constant n-byte-bits 8
   #!+sb-doc
   "Number of bits per byte where a byte is the smallest addressable object.")
 
-(defconstant word-shift (1- (integer-length (/ n-word-bits n-byte-bits)))
+(def!constant word-shift (1- (integer-length (/ n-word-bits n-byte-bits)))
   #!+sb-doc
   "Number of bits to shift between word addresses and byte addresses.")
 
-(defconstant n-word-bytes (/ n-word-bits n-byte-bits)
+(def!constant n-word-bytes (/ n-word-bits n-byte-bits)
   #!+sb-doc
   "Number of bytes in a word.")
 
-(defconstant float-sign-shift 31)
+(def!constant float-sign-shift 31)
 
-(defconstant single-float-bias 126)
+(def!constant single-float-bias 126)
 (defconstant-eqx single-float-exponent-byte (byte 8 23) #'equalp)
 (defconstant-eqx single-float-significand-byte (byte 23 0) #'equalp)
-(defconstant single-float-normal-exponent-min 1)
-(defconstant single-float-normal-exponent-max 254)
-(defconstant single-float-hidden-bit (ash 1 23))
-(defconstant single-float-trapping-nan-bit (ash 1 22))
+(def!constant single-float-normal-exponent-min 1)
+(def!constant single-float-normal-exponent-max 254)
+(def!constant single-float-hidden-bit (ash 1 23))
+(def!constant single-float-trapping-nan-bit (ash 1 22))
 
-(defconstant double-float-bias 1022)
+(def!constant double-float-bias 1022)
 (defconstant-eqx double-float-exponent-byte (byte 11 20)   #'equalp)
 (defconstant-eqx double-float-significand-byte (byte 20 0) #'equalp)
-(defconstant double-float-normal-exponent-min 1)
-(defconstant double-float-normal-exponent-max #x7FE)
-(defconstant double-float-hidden-bit (ash 1 20))
-(defconstant double-float-trapping-nan-bit (ash 1 19))
+(def!constant double-float-normal-exponent-min 1)
+(def!constant double-float-normal-exponent-max #x7FE)
+(def!constant double-float-hidden-bit (ash 1 20))
+(def!constant double-float-trapping-nan-bit (ash 1 19))
 
-(defconstant single-float-digits
+(def!constant single-float-digits
   (+ (byte-size single-float-significand-byte) 1))
 
-(defconstant double-float-digits
+(def!constant double-float-digits
   (+ (byte-size double-float-significand-byte) n-word-bits 1))
 
 ;;; These values are originally from the DEC Assembly Language
 ;;; <machine/fpu.h>
 
 ;;; trap enables are set in software (fp_control)
-(defconstant float-inexact-trap-bit        (ash 1 4)) ; rw
-(defconstant float-underflow-trap-bit      (ash 1 3)) ; rw
-(defconstant float-overflow-trap-bit       (ash 1 2)) ; ro
-(defconstant float-divide-by-zero-trap-bit (ash 1 1)) ; ro
-(defconstant float-invalid-trap-bit        (ash 1 0)) ; ro
+(def!constant float-inexact-trap-bit        (ash 1 4)) ; rw
+(def!constant float-underflow-trap-bit      (ash 1 3)) ; rw
+(def!constant float-overflow-trap-bit       (ash 1 2)) ; ro
+(def!constant float-divide-by-zero-trap-bit (ash 1 1)) ; ro
+(def!constant float-invalid-trap-bit        (ash 1 0)) ; ro
 (defconstant-eqx float-traps-byte          (byte 6  1) #'equalp)  
 
 ;;; exceptions are also read/written in software (by syscalls, no less).
 (defconstant-eqx float-exceptions-byte (byte 6 17)  #'equalp)
 
 ;;; Rounding modes can only be set by frobbing the hardware fpcr directly
-(defconstant float-round-to-zero     0)
-(defconstant float-round-to-negative 1)
-(defconstant float-round-to-nearest  2)
-(defconstant float-round-to-positive 3)
+(def!constant float-round-to-zero     0)
+(def!constant float-round-to-negative 1)
+(def!constant float-round-to-nearest  2)
+(def!constant float-round-to-positive 3)
 (defconstant-eqx float-rounding-mode   (byte 2 58) #'equalp) 
 
 ;;; Miscellaneous stuff - I think it's far to say that you deserve
 ;;; what you get if you ask for fast mode.
-(defconstant float-fast-bit 0)
+(def!constant float-fast-bit 0)
 
 ); eval-when
 
 
 #!+linux
 (progn
-  (defconstant read-only-space-start #x20000000)
-  (defconstant read-only-space-end   #x24000000)
+  (def!constant read-only-space-start #x20000000)
+  (def!constant read-only-space-end   #x24000000)
 
-  (defconstant static-space-start    #x28000000)
-  (defconstant static-space-end      #x2c000000)
+  (def!constant static-space-start    #x28000000)
+  (def!constant static-space-end      #x2c000000)
 
   ;; this is used in PURIFY as part of a sloppy check to see if a pointer
   ;; is in dynamic space.  Chocolate brownie for the first person to fix it
   ;; -dan 20010502
-  (defconstant dynamic-space-start   #x30000000)
-  (defconstant dynamic-space-end     #x3fff0000)
+  (def!constant dynamic-space-start   #x30000000)
+  (def!constant dynamic-space-end     #x3fff0000)
 
-  (defconstant dynamic-0-space-start   #x30000000)
-  (defconstant dynamic-0-space-end     #x3fff0000)
+  (def!constant dynamic-0-space-start   #x30000000)
+  (def!constant dynamic-0-space-end     #x3fff0000)
   
-  (defconstant dynamic-1-space-start   #x40000000)
-  (defconstant dynamic-1-space-end     #x4fff0000)
+  (def!constant dynamic-1-space-start   #x40000000)
+  (def!constant dynamic-1-space-end     #x4fff0000)
 
-  (defconstant control-stack-start   #x50000000)
-  (defconstant control-stack-end     #x51000000)
+  (def!constant control-stack-start   #x50000000)
+  (def!constant control-stack-end     #x51000000)
 
-  (defconstant binding-stack-start    #x70000000)
-  (defconstant binding-stack-end      #x71000000))
+  (def!constant binding-stack-start    #x70000000)
+  (def!constant binding-stack-end      #x71000000))
 
 #!+osf1                                 ;as if
 (progn
 ;;; backend, so they could probably be removed.
 
 ;; The space-register holding the lisp heap.
-(defconstant lisp-heap-space 4)
+(def!constant lisp-heap-space 4)
 
 ;; The space-register holding the C text segment.
-(defconstant c-text-space 4)
+(def!constant c-text-space 4)
 
 ;;; the X86 port defines *nil-value* as (+ *target-static-space-start* #xB)
 ;;; here, but it seems to be the only port that needs to know the