Changeset 5263


Ignore:
Timestamp:
Sep 26, 2006, 7:46:57 PM (18 years ago)
Author:
Gary Byers
Message:

(Redundant) FIXNUM decls in LDB compiler macro.

Location:
trunk/ccl/compiler
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/compiler/X86/X8664/x8664-vinsns.lisp

    r5253 r5263  
    20362036
    20372037
    2038 (define-x8664-vinsn mem-set-constant-doubleword (()
    2039                                                    ((val :s32const)
    2040                                                     (dest :address)
    2041                                                     (offset :s64)))
    2042    (movq (:$l val) (:@ (:%q dest) (:%q offset))))
     2038
    20432039
    20442040
  • trunk/ccl/compiler/X86/x862.lisp

    r5236 r5263  
    39253925          (and offval (%i> (integer-length offval) 31) (setq offval nil))
    39263926          (and intval (%i> (integer-length intval) 31) (setq intval nil))
     3927          (and intval
     3928               (case size
     3929                 (2
     3930                  (if (>= intval 32768) (setq intval (- intval 65536))))
     3931                 (1
     3932                  (if (>= intval 128) (setq intval (- intval 256))))))
    39273933          (cond (intval
    39283934                 (cond (offval
  • trunk/ccl/compiler/optimizers.lisp

    r5217 r5263  
    517517            (cond ((nx-form-typep integer 'fixnum env)
    518518                   `(logand ,(byte-mask size)
    519                             (ash ,integer ,(- position))))
     519                     (the fixnum (ash ,integer ,(- position)))))
    520520                  (t `(load-byte ,size ,position ,integer)))))
    521521         ((and (consp byte)
     
    526526            (if (and (nx-form-typep integer 'fixnum env) (fixnump position))
    527527              ;; I'm not sure this is worth doing
    528               `(logand (byte-mask ,size) (ash ,integer ,(- position)))
     528              `(logand (byte-mask ,size) (the fixnum (ash ,integer ,(- position))))
    529529              ;; this IS worth doing
    530530              `(load-byte ,size ,position ,integer))))
Note: See TracChangeset for help on using the changeset viewer.