X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fgeneric%2Fearly-vm.lisp;h=9b854eaaa302342ec71bdda2252883656209ee4f;hb=75b52379bdc2269961af6a1308eca63610f38ac3;hp=1e7ec1c1d9835f378bc6abb9146da055f3683cf3;hpb=4af254de85367806d14ccafc4dfbe79a235b926d;p=sbcl.git diff --git a/src/compiler/generic/early-vm.lisp b/src/compiler/generic/early-vm.lisp index 1e7ec1c..9b854ea 100644 --- a/src/compiler/generic/early-vm.lisp +++ b/src/compiler/generic/early-vm.lisp @@ -25,6 +25,12 @@ ;;; the bit width of positive fixnums (def!constant n-positive-fixnum-bits (- n-word-bits n-fixnum-tag-bits 1)) +;;; the number of bits to shift between word addresses and byte addresses +(def!constant word-shift (1- (integer-length (/ n-word-bits n-byte-bits)))) + +;;; the number of bytes in a word +(def!constant n-word-bytes (/ n-word-bits n-byte-bits)) + ;;; the number of bits used in the header word of a data block to store ;;; the type (def!constant n-widetag-bits 8)