X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fppc%2Farith.lisp;h=9e675f8acf982d185039758ffbc41d320ade9c22;hb=942e45e3bb73fd55786e4a0ab4590324063c0c89;hp=aca19f4133f9dec2c775de9a17068776a8b713a3;hpb=51344a3364f2cd6b14985719a77f697c094ea14d;p=sbcl.git diff --git a/src/compiler/ppc/arith.lisp b/src/compiler/ppc/arith.lisp index aca19f4..9e675f8 100644 --- a/src/compiler/ppc/arith.lisp +++ b/src/compiler/ppc/arith.lisp @@ -666,6 +666,9 @@ (defknown %%ldb (integer unsigned-byte unsigned-byte) unsigned-byte (movable foldable flushable)) +(defun %%ldb (integer size posn) + (sb!kernel::%ldb size posn integer)) + (define-vop (ldb-c/fixnum) (:translate %%ldb) (:args (x :scs (any-reg))) @@ -829,11 +832,15 @@ (defknown %logbitp (integer unsigned-byte) boolean (movable foldable flushable)) +(defun %logbitp (integer index) + (logbitp index integer)) + ;;; We only handle the constant cases because those are the only ones ;;; guaranteed to make it past COMBINATION-IMPLEMENTATION-STYLE. ;;; --njf, 06-02-2006 (define-vop (fast-logbitp-c/fixnum fast-conditional-c/fixnum) (:translate %logbitp) + (:arg-types tagged-num (:constant (integer 0 29))) (:temporary (:scs (any-reg) :to (:result 0)) test) (:generator 4 (if (< y 14) @@ -843,6 +850,7 @@ (define-vop (fast-logbitp-c/signed fast-conditional-c/signed) (:translate %logbitp) + (:arg-types signed-num (:constant (integer 0 31))) (:temporary (:scs (signed-reg) :to (:result 0)) test) (:generator 4 (if (< y 16) @@ -852,6 +860,7 @@ (define-vop (fast-logbitp-c/unsigned fast-conditional-c/unsigned) (:translate %logbitp) + (:arg-types unsigned-num (:constant (integer 0 31))) (:temporary (:scs (unsigned-reg) :to (:result 0)) test) (:generator 4 (if (< y 16)