1.0.13.6: Add missing sb-xc-host definition for sign-extend
authorJuho Snellman <jsnell@iki.fi>
Tue, 1 Jan 2008 14:45:33 +0000 (14:45 +0000)
committerJuho Snellman <jsnell@iki.fi>
Tue, 1 Jan 2008 14:45:33 +0000 (14:45 +0000)
        * Patch by David Lichteblau

src/compiler/x86-64/c-call.lisp
version.lisp-expr

index afbe857..04814f4 100644 (file)
                          :sc (sc-or-lose 'dword-reg)
                          :offset (tn-offset val)))))
 
+#-sb-xc-host
 (defun sign-extend (x)
   (declare (type (signed-byte 32) x))
   (sign-extend x))
 
+#+sb-xc-host
+(defun sign-extend (x)
+  (if (logbitp 31 x)
+      (dpb x (byte 32 0) -1)
+      x))
+
 (define-vop (foreign-symbol-sap)
   (:translate foreign-symbol-sap)
   (:policy :fast-safe)
index 55dade6..02fd538 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.13.5"
+"1.0.13.6"