[movitz-cvs] CVS update: movitz/storage-types.lisp

Frode Vatvedt Fjeld ffjeld at common-lisp.net
Wed Nov 10 15:35:33 UTC 2004


Update of /project/movitz/cvsroot/movitz
In directory common-lisp.net:/tmp/cvs-serv22939

Modified Files:
	storage-types.lisp 
Log Message:
*** empty log message ***
Date: Wed Nov 10 16:35:32 2004
Author: ffjeld

Index: movitz/storage-types.lisp
diff -u movitz/storage-types.lisp:1.43 movitz/storage-types.lisp:1.44
--- movitz/storage-types.lisp:1.43	Thu Oct 21 22:42:51 2004
+++ movitz/storage-types.lisp	Wed Nov 10 16:35:32 2004
@@ -9,14 +9,12 @@
 ;;;; Created at:    Sun Oct 22 00:22:43 2000
 ;;;; Distribution:  See the accompanying file COPYING.
 ;;;;                
-;;;; $Id: storage-types.lisp,v 1.43 2004/10/21 20:42:51 ffjeld Exp $
+;;;; $Id: storage-types.lisp,v 1.44 2004/11/10 15:35:32 ffjeld Exp $
 ;;;;                
 ;;;;------------------------------------------------------------------
 
 (in-package movitz)
 
-;; (defconstant +tag-other+ 6)
-
 (define-unsigned lu64 8 :little-endian)
 
 (define-bitfield segment-descriptor (lu64)
@@ -171,14 +169,15 @@
 ;;; Fixnums
 
 (eval-when (:compile-toplevel :execute :load-toplevel)
-  (defconstant +movitz-fixnum-bits+ 30)
-  (defconstant +movitz-fixnum-shift+ (- 32 +movitz-fixnum-bits+))
-  (defconstant +movitz-fixnum-factor+ (expt 2 +movitz-fixnum-shift+))
-  (defconstant +movitz-fixnum-zmask+ (1- +movitz-fixnum-factor+))
-  (defconstant +movitz-most-positive-fixnum+ (1- (expt 2 (1- +movitz-fixnum-bits+))))
-  (defconstant +movitz-most-negative-fixnum+ (- (expt 2 (1- +movitz-fixnum-bits+))))
+  (defparameter +movitz-fixnum-bits+ 30)
+  (defparameter +movitz-fixnum-shift+ (- 32 +movitz-fixnum-bits+))
+  (defparameter +movitz-fixnum-factor+ (expt 2 +movitz-fixnum-shift+))
+  (defparameter +movitz-fixnum-zmask+ (1- +movitz-fixnum-factor+))
+  (defparameter +movitz-most-positive-fixnum+ (1- (expt 2 (1- +movitz-fixnum-bits+))))
+  (defparameter +movitz-most-negative-fixnum+ (- (expt 2 (1- +movitz-fixnum-bits+))))
 
-  (defparameter +other-type-offset+ -6))
+  (defparameter +object-pointer-shift+ 0)
+  (defparameter +other-type-offset+ (- -6 +object-pointer-shift+)))
 
 (defun fixnum-integer (word)
   "For a Movitz word, that must be a fixnum, return the corresponding
@@ -266,7 +265,7 @@
 	:map-binary-read-delayed 'movitz-word
 	:initarg :cdr
 	:accessor movitz-cdr))
-  (:slot-align car -1))
+  (:slot-align car #.(- -1 +object-pointer-shift+)))
 
 (defmethod movitz-object-offset ((obj movitz-cons)) 1)
 





More information about the Movitz-cvs mailing list